Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d46d0a1

Browse files
author
Anand Sanmukhani
authored
Merge pull request #154 from 4n4nd/update-dockerfile
Update Dockerfile to use ubi8 python38 base image instead of miniconda
2 parents 29a8663 + c937f72 commit d46d0a1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM continuumio/miniconda3
2-
3-
SHELL ["/bin/bash", "-c"]
4-
ADD . /
5-
RUN chmod +x set_uid.sh
6-
7-
ADD environment.yml /tmp/environment.yml
8-
RUN chmod g+w /etc/passwd
9-
RUN conda env create -f /tmp/environment.yml
1+
FROM registry.access.redhat.com/ubi8/python-38:latest
102

3+
# Add application sources to a directory that the assemble script expects them
4+
# and set permissions so that the container runs without root access
5+
USER 0
6+
ADD . /tmp/src
7+
RUN /usr/bin/fix-permissions /tmp/src
118
USER 1001
129

13-
# Ensure that assigned uid has entry in /etc/passwd.
14-
CMD ./set_uid.sh && /opt/conda/envs/PAD/bin/python ${APP_FILE}
10+
# Install the dependencies
11+
RUN /usr/libexec/s2i/assemble
12+
13+
# Set the default command for the resulting image
14+
CMD /usr/libexec/s2i/run

0 commit comments

Comments
 (0)