AstroJS/Dockerfile

25 lines
698 B
Docker
Raw Permalink Normal View History

2022-04-04 17:42:09 +00:00
FROM alpine:3.15.3
2020-09-22 17:37:10 +00:00
WORKDIR /app
RUN mkdir -p /opt/utils
2020-09-23 16:10:46 +00:00
RUN apk add --update bash python3 uwsgi uwsgi-python openjdk11-jre-headless; python3 -m ensurepip
2020-09-22 18:57:50 +00:00
2022-03-15 16:04:16 +00:00
RUN echo "www-data:x:1001:1001:www-data:/var/www:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:1001:" >> /etc/group
2020-09-22 17:37:10 +00:00
2020-09-22 18:57:50 +00:00
RUN pip3 install Flask redis compressinja Celery
2020-09-23 16:10:46 +00:00
2022-04-04 17:42:09 +00:00
ADD [ "https://github.com/tgckpg/BotanJS/releases/download/compressors/closure.jar" \
, "https://github.com/tgckpg/BotanJS/releases/download/compressors/yuicompressor.jar" \
, "/opt/utils/" ]
2022-04-05 09:13:40 +00:00
COPY . /app/
2022-04-05 11:00:42 +00:00
RUN chmod 644 /opt/utils/*.jar; \
chown www-data:www-data . -R
2020-09-22 17:37:10 +00:00
USER www-data
EXPOSE 5000
ENTRYPOINT ["setup/docker.start"]