This repository has been archived on 2020-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
namensschilder/Dockerfile

37 lines
641 B
Docker
Raw Normal View History

2020-02-01 13:52:49 +01:00
FROM node:alpine as node-modules
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json .
RUN npm install
2019-03-27 20:30:59 +01:00
FROM debian:testing-slim
RUN apt-get update \
&& apt-get -y install \
fonts-roboto \
inkscape \
nodejs \
openscad \
pstoedit \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists
WORKDIR /usr/src/app
2020-02-01 13:52:49 +01:00
COPY --from=node-modules /usr/src/app/node_modules node_modules
2019-03-27 20:30:59 +01:00
COPY requirements.txt .
2020-02-01 13:52:49 +01:00
RUN pip3 install --no-cache-dir -r requirements.txt
2019-03-27 20:30:59 +01:00
RUN mkdir static
COPY . .
ENTRYPOINT ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "server:app"]
2020-02-01 13:52:49 +01:00
EXPOSE 8000