added Docker config
parent
389f9b71cb
commit
d44f6e77cc
@ -1,7 +1,20 @@
|
||||
FROM tiangolo/uwsgi-nginx-flask:python3.8-alpine
|
||||
RUN apk --update add bash nano
|
||||
ENV STATIC_URL /static
|
||||
ENV STATIC_PATH /var/www/app/static
|
||||
COPY ./requirements.txt /var/www/requirements.txt
|
||||
RUN pip install -r /var/www/requirements.txt
|
||||
FROM python:3-alpine
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install app dependencies
|
||||
COPY requirements.txt ./
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
#imagemagick
|
||||
ENV MAGICK_HOME=/usr
|
||||
RUN apk add --no-cache imagemagick && \
|
||||
apk add --no-cache imagemagick-dev
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
CMD [ "python3", "run.py"]
|
||||
|
Loading…
Reference in New Issue