forked from Botanical/BotanJS
Added settings for k8s
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM python:latest
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y openjdk-11-jre
|
||||
|
||||
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"
|
||||
|
||||
RUN pip install virtualenv
|
||||
RUN chown www-data:www-data . -R
|
||||
|
||||
USER www-data
|
||||
|
||||
RUN virtualenv env
|
||||
RUN env/bin/pip install Flask redis compressinja Celery uwsgi
|
||||
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["setup/docker.start"]
|
||||
|
||||
COPY . /app/
|
Reference in New Issue
Block a user