Skip to content

Commit

Permalink
Modify service Dockerfile as no longer require developer stage
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and DiamondJoseph committed Nov 22, 2024
1 parent 635920f commit 2a0f031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Set up a virtual environment and put it in PATH
RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH
ENV PATH=/venv/bin:$PATH
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# The devcontainer should use the developer target and run as root with podman
# or docker with user namespaces.
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION} AS developer
FROM python:${PYTHON_VERSION} AS build

# Add any system dependencies for the developer/build environment here
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -12,8 +10,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH

# The build stage installs the context into the venv
FROM developer AS build
COPY . /context
WORKDIR /context
RUN touch dev-requirements.txt && pip install --upgrade pip && pip install -c dev-requirements.txt .
Expand Down

0 comments on commit 2a0f031

Please sign in to comment.