You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dwgstatus/Dockerfile

35 lines
1.0 KiB

FROM python:3.11-alpine
RUN addgroup -S dwgstatus --gid 1000 && adduser --uid 1000 -S dwgstatus -G dwgstatus
EXPOSE 8000
ENV PYTHONUNBUFFERED=1 \
PORT=8000
RUN apk add postgresql16-client
# RUN apt update && apt install -y --no-install-recommends \
# make \
# build-essential \
# gcc \
# libtool \
# autoconf \
# automake \
# wget \
# curl \
# texinfo \
# postgresql-client
# RUN wget https://github.com/LibreDWG/libredwg/archive/refs/tags/0.13.3.tar.gz
# RUN tar -xf 0.13.3.tar.gz
# WORKDIR /libredwg-0.13.3
# RUN autoreconf --install --symlink "$@" -I m4
# RUN curl https://raw.githubusercontent.com/zserge/jsmn/master/jsmn.h -o jsmn/jsmn.h
# RUN ./configure --disable-write --disable-bindings
# RUN make
# RUN make install
# RUN ldconfig
RUN pip install "gunicorn"
COPY requirements.txt /
RUN pip install -r /requirements.txt
WORKDIR /app
RUN chown dwgstatus:dwgstatus /app
COPY --chown=dwgstatus:dwgstatus . .
USER dwgstatus
CMD set -xe; gunicorn --reload dwgstatus.wsgi:application