openscad-remote/Dockerfile

18 lines
370 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 \
&& mkdir -p /data/temp
COPY . /app
ENTRYPOINT [ "uwsgi", "--ini", "uwsgi.ini" ]