shimatta-kenkyusho/Dockerfile

18 lines
399 B
Docker
Raw Permalink Normal View History

2023-09-04 22:36:59 +02:00
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