Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating dockerfile #11

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
# Original credit: https://github.com/jpetazzo/dockvpn

FROM alpine:3.19.1 as awscli-installer

# Install Python and pip
RUN apk add --no-cache python3 py3-pip && \
python3 -m venv /awscli-venv && \
source /awscli-venv/bin/activate && \
pip install --upgrade pip && \
pip install awscli

# Smallest base image
FROM alpine:3.19.1
# Copy the virtual environment from the previous stage
COPY --from=awscli-installer /awscli-venv /awscli-venv

# Add the virtual environment to PATH so aws-cli commands can be used directly
ENV PATH="/awscli-venv/bin:$PATH"

LABEL maintainer="Kyle Manna <kyle@kylemanna.com>"

Expand All @@ -12,7 +26,7 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/reposi
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*

RUN apk --no-cache update && \
apk --no-cache add python3 py3-pip py3-setuptools ca-certificates groff less bash make jq gettext-dev curl wget g++ zip git aws-cli && \
apk --no-cache add python3 py3-pip py3-setuptools ca-certificates groff less bash make jq gettext-dev curl wget g++ zip git && \
update-ca-certificates && \
rm -rf /var/cache/apk/*

Expand Down
Loading