openscad-remote/Dockerfile
2021-08-18 08:11:52 +01:00

17 lines
344 B
Docker

FROM python:buster
RUN apt update \
&& apt -y install openscad uwsgi uwsgi-plugin-python3 \
&& apt clean
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt \
&& rm -rf ~/.cache/pip/* \
&& mkdir -p /data/upload \
&& mkdir -p /data/build
COPY . /app
ENTRYPOINT [ "uwsgi", "--ini", "uwsgi.ini" ]