Skip to content

Commit

Permalink
Update Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mareuter committed Mar 14, 2024
1 parent 39912ea commit a1c797e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,14 @@ LABEL org.opencontainers.image.source=https://github.com/mareuter/lct-web
LABEL org.opencontainers.image.description="Webservice for Lunar Club information."
LABEL org.opencontainers.image.license=BSD-3-Clause

WORKDIR /
RUN apt update && \
apt-get install --yes git && \
pip install --upgrade pip

RUN adduser fastapi
USER fastapi
WORKDIR /home/fastapi

COPY --chown=fastapi:fastapi pyproject.toml .
COPY --chown=fastapi:fastpi .git .git
COPY --chown=fastapi:fastapi src src

ENV PATH="/home/fastapi/.local/bin:${PATH}"

RUN pip install --user .
RUN --mount=source=wheels,target=wheels,type=bind \
pip install --no-cache-dir --user wheels/*

EXPOSE 8000

Expand Down

0 comments on commit a1c797e

Please sign in to comment.