Prepare setup for multi-ver deployment on docs server
This commit is contained in:
@@ -4,20 +4,17 @@ RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN apk add --no-cache git curl \
|
||||
RUN apk add --no-cache curl \
|
||||
&& pip install -r requirements.txt
|
||||
|
||||
COPY server.py ./server.py
|
||||
COPY setup.py ./setup.py
|
||||
COPY main.py ./main.py
|
||||
COPY flavors /data/master/flavors
|
||||
COPY templates /data/master/templates
|
||||
COPY flavors /data/flavors
|
||||
COPY templates /data/templates
|
||||
COPY static ./static
|
||||
|
||||
#RUN python setup.py https://github.com/mailu/mailu /data
|
||||
|
||||
EXPOSE 80/tcp
|
||||
|
||||
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|
||||
|
||||
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
|
||||
HEALTHCHECK CMD curl -f -L http://localhost/master/ || exit 1
|
||||
|
||||
Reference in New Issue
Block a user