snap2laz/Dockerfile

30 lines
597 B
Docker
Raw Permalink Normal View History

FROM python:3.8-slim
LABEL name=laser-app version=0.1
2023-07-25 23:28:19 +00:00
RUN apt update
RUN apt install -y --no-install-recommends build-essential\
gcc\
libagg2-dev\
libpotrace-dev\
pkg-config\
2023-07-25 23:28:19 +00:00
python-dev
RUN rm -f /etc/nginx/sites-enabled/*
RUN pip3 install flask numpy pillow redis
RUN pip3 install pypotrace
2020-11-05 15:50:20 +00:00
COPY ./server/files/nginx/sites-enabled/site.conf /etc/nginx/sites-enabled
2023-07-25 23:28:19 +00:00
WORKDIR /opt
COPY . .
2023-07-25 23:28:19 +00:00
# COPY ./server/entrypoint.sh /usr/bin/
# RUN chmod +x /usr/bin/entrypoint.sh
#
# ENTRYPOINT /usr/bin/entrypoint.sh
EXPOSE 5000
# Start the main process.
CMD ["python", "./server.py", "-i", "db"]