diff --git a/Dockerfile b/Dockerfile index e0044c1..d17b061 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,14 @@ RUN apk --no-cache update && \ openssh \ postgresql-dev \ yarn && \ + python3 -m venv /opt/venv && \ + . /opt/venv/bin/activate && \ pip --no-cache-dir install awscli virtualenv && \ update-ca-certificates && \ rm -rf /var/cache/apk/* && \ yarn global add $SERVERLESS -WORKDIR /work \ No newline at end of file +WORKDIR /work + +# Ensure the virtual environment is activated in subsequent RUN instructions +ENV PATH="/opt/venv/bin:$PATH" \ No newline at end of file