Introduce THELOUNGE_REPOSITORY to specify upstream repository to compile from
This commit is contained in:
parent
8c34c7afe9
commit
dfc9186cc7
|
@ -1,5 +1,6 @@
|
|||
FROM node:lts-alpine
|
||||
|
||||
ARG THELOUNGE_REPOSITORY=git+https://github.com/thelounge/thelounge.git
|
||||
ARG THELOUNGE_VERSION=4.4.1-rc.2
|
||||
|
||||
LABEL org.opencontainers.image.title "Official The Lounge image"
|
||||
|
@ -20,14 +21,18 @@ ENV PORT 9000
|
|||
EXPOSE ${PORT}
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
CMD ["thelounge", "start"]
|
||||
WORKDIR /src/thelounge
|
||||
CMD ["yarn", "start"]
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Install thelounge.
|
||||
RUN apk --update --no-cache --virtual build-deps add python3 build-base git && \
|
||||
ln -sf python3 /usr/bin/python && \
|
||||
yarn --non-interactive --frozen-lockfile global add thelounge@${THELOUNGE_VERSION} && \
|
||||
git clone "${THELOUNGE_REPOSITORY}" /src/thelounge && \
|
||||
cd /src/thelounge && git reset --hard "${THELOUNGE_VERSION}" && \
|
||||
yarn --non-interactive --frozen-lockfile install --production=false && \
|
||||
yarn --non-interactive build && \
|
||||
yarn --non-interactive cache clean && \
|
||||
apk del --purge build-deps && \
|
||||
rm -rf /root/.cache /tmp /usr/bin/python
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
version: '2'
|
||||
services:
|
||||
thelounge:
|
||||
image: ghcr.io/thelounge/thelounge:latest
|
||||
build:
|
||||
context: ./
|
||||
container_name: thelounge
|
||||
ports:
|
||||
- "9000:9000"
|
||||
|
|
Loading…
Reference in a new issue