forked from Botanical/BotanJS
25 lines
698 B
Docker
25 lines
698 B
Docker
FROM alpine:3.15.3
|
|
WORKDIR /app
|
|
|
|
RUN mkdir -p /opt/utils
|
|
|
|
RUN apk add --update bash python3 uwsgi uwsgi-python openjdk11-jre-headless; python3 -m ensurepip
|
|
|
|
RUN echo "www-data:x:1001:1001:www-data:/var/www:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:1001:" >> /etc/group
|
|
|
|
RUN pip3 install Flask redis compressinja Celery
|
|
|
|
ADD [ "https://github.com/tgckpg/BotanJS/releases/download/compressors/closure.jar" \
|
|
, "https://github.com/tgckpg/BotanJS/releases/download/compressors/yuicompressor.jar" \
|
|
, "/opt/utils/" ]
|
|
|
|
COPY . /app/
|
|
|
|
RUN chmod 644 /opt/utils/*.jar; \
|
|
chown www-data:www-data . -R
|
|
|
|
USER www-data
|
|
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["setup/docker.start"]
|