test
This commit is contained in:
parent
bddb8ca9c3
commit
fb49e14b01
16
Dockerfile
16
Dockerfile
@ -11,6 +11,7 @@ RUN apt-get update && apt-get upgrade -y \
|
|||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
|
nginx \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
RUN pip3 install --no-cache-dir Flask PyMuPDF
|
RUN pip3 install --no-cache-dir Flask PyMuPDF
|
||||||
@ -19,6 +20,17 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
EXPOSE 8080
|
RUN rm -f /etc/nginx/sites-enabled/default \
|
||||||
|
&& echo 'server { \
|
||||||
|
listen 80; \
|
||||||
|
server_name localhost; \
|
||||||
|
location / { \
|
||||||
|
root /app/static; \
|
||||||
|
index index.html; \
|
||||||
|
} \
|
||||||
|
}' > /etc/nginx/sites-available/static_site \
|
||||||
|
&& ln -s /etc/nginx/sites-available/static_site /etc/nginx/sites-enabled/
|
||||||
|
|
||||||
CMD ["python3", "invoice_service.py"]
|
EXPOSE 80 8080
|
||||||
|
|
||||||
|
CMD service nginx start && python3 invoice_service.py
|
||||||
|
Loading…
Reference in New Issue
Block a user