diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile index 64130e51..369316ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,17 +6,21 @@ ENV WS_PORT=3002 ENV CDN_PORT=3003 ENV RTC_PORT=3004 ENV ADMIN_PORT=3005 +ENV THREADS=1 # exposed ports (only for reference, see https://docs.docker.com/engine/reference/builder/#expose) EXPOSE ${HTTP_PORT}/tcp ${WS_PORT}/tcp ${CDN_PORT}/tcp ${RTC_PORT}/tcp ${ADMIN_PORT}/tcp # install required apps -RUN apk add --no-cache --update git python3 py-pip make build-base -RUN ln -s /usr/bin/python3 /usr/bin/python +RUN apk add --no-cache --update git # Run as non-root user # RUN adduser -D fosscord # USER fosscord -WORKDIR /srv/fosscord-server/bundle -ENTRYPOINT ["npm", "run", "start:bundle"] \ No newline at end of file +copy . /srv/fosscord-server/ + +WORKDIR /srv/fosscord-server +RUN chmod +x scripts/docker-entrypoint.sh +run rm -rf assets/cache/ +ENTRYPOINT ["scripts/docker-entrypoint.sh"] \ No newline at end of file |