2020-09-22 18:57:50 +00:00
|
|
|
FROM alpine:latest
|
2020-09-22 17:37:10 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN mkdir -p /opt/utils
|
|
|
|
RUN wget -O /opt/utils/closure.jar "https://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20200830/closure-compiler-v20200830.jar"
|
|
|
|
RUN wget -O /opt/utils/yuicompressor.jar "https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar"
|
|
|
|
|
2020-09-22 18:57:50 +00:00
|
|
|
RUN apk add --update bash python3 uwsgi uwsgi-python; python3 -m ensurepip
|
|
|
|
|
|
|
|
RUN echo "www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:33:" >> /etc/group
|
2020-09-22 17:37:10 +00:00
|
|
|
RUN chown www-data:www-data . -R
|
|
|
|
|
2020-09-22 18:57:50 +00:00
|
|
|
RUN pip3 install Flask redis compressinja Celery
|
2020-09-22 17:37:10 +00:00
|
|
|
USER www-data
|
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["setup/docker.start"]
|
|
|
|
|
|
|
|
COPY . /app/
|