Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjtaylor committed Nov 4, 2024
1 parent ac49ffd commit 43bfe14
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
FROM python:3.11-slim

ENV PIP_DEFAULT_TIMEOUT=100 \
# Allow statements and log messages to immediately appear
PYTHONUNBUFFERED=1 \
# disable a pip version check to reduce run-time & log-spam
PIP_DISABLE_PIP_VERSION_CHECK=1 \
# cache is useless in docker image, so disable to reduce image size
PIP_NO_CACHE_DIR=1

# Install CA certificates and other dependencies
# Install CA certificates, gcc, python3-dev, and other dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
unzip \
procps \
ca-certificates && \
ca-certificates \
gcc \
python3-dev && \
rm -rf /var/lib/apt/lists/*

# Upgrade pip and install synapseclient
RUN pip install --no-cache-dir --upgrade pip && \
pip install synapseclient==4.6.0

Expand All @@ -30,3 +30,4 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
# Set the working directory
WORKDIR /workspace

ENTRYPOINT ["/bin/bash"]

0 comments on commit 43bfe14

Please sign in to comment.