8000 Remove virtualenv dependency from docker build (#11794) · localstack/localstack@defeee1 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit defeee1

Browse files
authored
Remove virtualenv dependency from docker build (#11794)
1 parent cc022b8 commit defeee1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ RUN chmod 777 . && \
7878
chmod 755 /root && \
7979
chmod -R 777 /.npm
8080

81-
# install basic (global) tools to final image
82-
RUN --mount=type=cache,target=/root/.cache \
83-
pip install --no-cache-dir --upgrade virtualenv
84-
8581
# install the entrypoint script
8682
ADD bin/docker-entrypoint.sh /usr/local/bin/
8783
# add the shipped hosts file to prevent performance degredation in windows container mode on windows
@@ -114,7 +110,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
114110

115111
# upgrade python build tools
116112
RUN --mount=type=cache,target=/root/.cache \
117-
(virtualenv .venv && . .venv/bin/activate && pip3 install --upgrade pip wheel setuptools)
113+
(python -m venv .venv && . .venv/bin/activate && pip3 install --upgrade pip wheel setuptools)
118114

119115
# add files necessary to install runtime dependencies
120116
ADD Makefile pyproject.toml requirements-runtime.txt ./

0 commit comments

Comments
 (0)
0