-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:16
ARG DEBIAN_FRONTEND=noninteractive \
AWS_CLI_URL='https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip'
# install AWS CLI v2
COPY ./utils/aws-sso-credential-process /usr/local/bin/aws-sso-credential-process
RUN apt-get update && apt-get -y install --no-install-recommends zip jq \
# install AWS CLI v2
&& curl "${AWS_CLI_URL}" -o /tmp/awscli.zip \
&& unzip /tmp/awscli.zip -d /tmp \
&& /tmp/aws/install \
&& rm -f /tmp/awscli.zip
# install docker-cli
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update && apt-get -y install --no-install-recommends docker-ce-cli
COPY ./utils/first-run-notice.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
COPY ./utils/alias.txt /tmp/alias.txt
RUN cat /tmp/alias.txt >> ~/.zshrc \
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
ENV SHELL=/bin/zsh \
DOCKER_BUILDKIT=1