Skip to content

Commit 3642f07

Browse files
committed
Address hacks in Dockerfile
1 parent af3660c commit 3642f07

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

{{cookiecutter.repository_name}}/docker/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
ARG REPO_BRANCH="main"
2-
31
# We choose ubuntu 22.04 as our base docker image
4-
FROM ubuntu:22.04 as base
2+
FROM ubuntu:22.04
53

6-
# Expose arg
7-
ARG REPO_BRANCH
4+
ARG REPO_BRANCH="main"
5+
ENV DEB_PYTHON_INSTALL_LAYOUT=deb_system
86

97
# Install pip and git with apt
108
RUN apt-get update && \
119
apt-get install -y python3-pip git
1210

1311
# We upgrade pip and setuptools
14-
# We remove the version of setuptools install via apt, as it is outdated
1512
RUN python3 -m pip install pip setuptools --upgrade
16-
RUN apt-get purge -y python3-setuptools
1713

1814

1915
# We set the working directory to install docker dependencies

0 commit comments

Comments
 (0)