Skip to content

Instantly share code, notes, and snippets.

@mnl
Created July 6, 2023 08:15
Show Gist options
  • Save mnl/a5910be646e44918c17ccaca59269002 to your computer and use it in GitHub Desktop.
Save mnl/a5910be646e44918c17ccaca59269002 to your computer and use it in GitHub Desktop.
FROM registry.access.redhat.com/ubi9/python-39
COPY ./src /opt/app-root
RUN source ../bin/activate && \
pip3 install -r ../requirements.txt
EXPOSE 8000
USER 1000
LABEL org.opencontainers.image.created=hej \
org.opencontainers.image.authors="Micke" \
org.opencontainers.image.url="http://nimell.se/micke" \
org.opencontainers.image.documentation="http://nimell.se/micke/docs" \
org.opencontainers.image.source="http://nimell.se/micke/src" \
org.opencontainers.image.version="v0.1" \
org.opencontainers.image.revision="0.1" \
org.opencontainers.image.vendor="nimell.se" \
org.opencontainers.image.licenses="GLWTPL" \
org.opencontainers.image.ref.name="awesome" \
org.opencontainers.image.title="awesome" \
org.opencontainers.image.description="Awesome image" \
org.opencontainers.image.base.name="registry.access.redhat.com/ubi9/python-39"
CMD ["python3 -u run.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment