shimatta-kenkyusho/Dockerfile

18 lines
399 B
Docker

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