This commit is contained in:
parent
9202a01802
commit
ab156a68ea
19
Dockerfile
19
Dockerfile
|
@ -1,3 +1,12 @@
|
|||
FROM node:alpine as node-modules
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
FROM debian:testing-slim
|
||||
|
||||
RUN apt-get update \
|
||||
|
@ -5,7 +14,6 @@ RUN apt-get update \
|
|||
fonts-roboto \
|
||||
inkscape \
|
||||
nodejs \
|
||||
npm \
|
||||
openscad \
|
||||
pstoedit \
|
||||
python3 \
|
||||
|
@ -14,14 +22,15 @@ RUN apt-get update \
|
|||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
COPY --from=node-modules /usr/src/app/node_modules node_modules
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN npm install \
|
||||
&& pip3 install -r requirements.txt
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
RUN mkdir static
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "server:app"]
|
||||
|
||||
EXPOSE 8000
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
flask
|
||||
gunicorn
|
||||
lxml
|
||||
|
|
Reference in a new issue