Start porting to docker

This commit is contained in:
2023-09-04 22:36:59 +02:00
parent 217606e51d
commit b8ff82fbda
4 changed files with 72 additions and 278 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y libpq-dev python3 python3-poetry nginx
COPY shimatta_kenkyusho /app/shimatta_kenkyusho
COPY poetry.lock /app/
COPY pyproject.toml /app/
RUN systemctl enable nginx
ARG UNAME=django
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $UNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
USER $UNAME
WORKDIR "/app"
RUN poetry install