28 lines
509 B
Docker
28 lines
509 B
Docker
FROM debian:testing-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install \
|
|
fonts-roboto \
|
|
inkscape \
|
|
nodejs \
|
|
npm \
|
|
openscad \
|
|
pstoedit \
|
|
python3 \
|
|
python3-pip \
|
|
&& rm -rf /var/lib/apt/lists
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
COPY requirements.txt .
|
|
|
|
RUN npm install \
|
|
&& pip3 install -r requirements.txt
|
|
|
|
RUN mkdir static
|
|
COPY . .
|
|
|
|
ENTRYPOINT ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "server:app"]
|