Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Jan 18, 2024
1 parent 8e7fd03 commit fe5dce8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Docker build instructions for the Nublado controller.
# Docker build instructions for rubin-google-filestore-tools
#
# This Dockerfile has four stages:
#
# base-image
# Updates the base Python image with security patches and common system
# packages. This image becomes the base of all other images.
# install-image
# Installs third-party dependencies (controller/requirements/main.txt)
# Installs third-party dependencies (requirements/main.txt)
# into a virtual environment and then installs the app. This virtual
# environment is the only thing copied into the runtime image. copying
# across build stages.
# environment is the only thing copied into the runtime image.
# runtime-image
# - Copies the virtual environment into place.
# - Runs a non-root user.
Expand Down Expand Up @@ -44,7 +43,7 @@ RUN pip install --quiet --no-cache-dir -r requirements.txt
# Install the Python package.
COPY . /workdir
WORKDIR /workdir
RUN pip install --no-cache-dir ./controller
RUN pip install --no-cache-dir .

FROM base-image AS runtime-image

Expand Down

0 comments on commit fe5dce8

Please sign in to comment.