Skip to content

Commit

Permalink
Merge pull request #3 from DiamondLightSource/runtime-container
Browse files Browse the repository at this point in the history
Work on runtime container
  • Loading branch information
marcelldls authored Jun 20, 2024
2 parents ba75dbf + c03d47c commit fb26a45
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,11 @@ RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH

# The build stage installs the context into the venv
FROM developer as build
FROM developer as runtime
COPY . /context
WORKDIR /context
RUN pip install .

# The runtime stage copies the built venv into a slim runtime container
FROM python:${PYTHON_VERSION}-slim as runtime
# Add apt-get system dependecies for runtime here if needed
COPY --from=build /venv/ /venv/
ENV PATH=/venv/bin:$PATH

COPY --from=build opt/mvIMPACT_Acquire/ opt/mvIMPACT_Acquire/

# change this entrypoint if it is not the same as the repo
ENTRYPOINT ["genicam-fastcs"]
CMD ["--version"]

0 comments on commit fb26a45

Please sign in to comment.