Skip to content

Commit e0046f2

Browse files
committed
Combined docker lines
1 parent 0249da4 commit e0046f2

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

Dockerfile

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
FROM python:3.11-slim
2-
3-
LABEL org.opencontainers.image.source="https://github.com/Deltares/D-EcoImpact"
4-
5-
WORKDIR /decoimpact
6-
7-
# Copy files in local working directory to docker working directory
8-
COPY . .
9-
10-
# Update the package source list, update system packages
11-
RUN apt-get update && apt-get upgrade -y \
12-
&& pip install poetry
13-
14-
# Install Poetry dependencies without creating poetry environment
15-
## Packages are installed in "/usr/local/lib/python/site-packages/" when the environment is not created,
16-
## which corresponds to the local installation of Python "/usr/local/bin/python" in the base Docker image
17-
RUN poetry config virtualenvs.create false
18-
RUN poetry install
19-
RUN apt-get clean autoclean
1+
FROM python:3.11-slim
2+
3+
LABEL org.opencontainers.image.source="https://github.com/Deltares/D-EcoImpact"
4+
5+
WORKDIR /decoimpact
6+
7+
# Copy files in local working directory to docker working directory
8+
COPY . .
9+
10+
# Update the package source list, update system packages
11+
RUN apt-get update && apt-get upgrade -y \
12+
&& pip install poetry
13+
14+
# Install Poetry dependencies without creating poetry environment
15+
## Packages are installed in "/usr/local/lib/python/site-packages/" when the environment is not created,
16+
## which corresponds to the local installation of Python "/usr/local/bin/python" in the base Docker image
17+
RUN poetry config virtualenvs.create false \
18+
&& poetry install \
19+
&& apt-get clean autoclean
20+

0 commit comments

Comments
 (0)