Skip to content

Commit 710d1a0

Browse files
authored
Merge branch 'main' into update-readme
2 parents b5ae2ad + d760356 commit 710d1a0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Dockerfile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Use the official Ubuntu base image, latest version
2+
FROM ubuntu:latest
3+
# Create User
4+
RUN useradd --create-home --shell /bin/bash vscode
5+
# Set the working directory inside the container
6+
WORKDIR /vscode
7+
# Install any necessary dependencies
8+
RUN apt-get update
9+
# Setup the code repository
10+
RUN apt-get install -y wget gpg curl unzip mandoc && \
11+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg && \
12+
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg && \
13+
sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' && \
14+
rm -f packages.microsoft.gpg
15+
# Install Visual Studio Code from the repository
16+
RUN apt install -y apt-transport-https && \
17+
apt update && \
18+
apt install -y code
19+
20+
# Install AWS cli
21+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
22+
unzip awscliv2.zip && \
23+
./aws/install
24+
25+
ENV MINICONDA_SHA="35a58b8961e1187e7311b979968662c6223e86e1451191bed2e67a72b6bd0658"
26+
ENV MINICONDA_VERSION="23.11.0-2"
27+
# Install miniconda
28+
RUN mkdir -p /opt/miniconda3 && \
29+
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_${MINICONDA_VERSION}-Linux-x86_64.sh -O /opt/miniconda3/miniconda.sh && \
30+
echo "${MINICONDA_SHA} /opt/miniconda3/miniconda.sh" | sha256sum -c && \
31+
bash /opt/miniconda3/miniconda.sh -b -u -p /opt/miniconda3 && \
32+
rm -rf /opt/miniconda3/miniconda.sh
33+
34+
35+
36+
ENV PATH="${PATH}:/opt/miniconda3/bin"
37+
38+
# Switch user
39+
USER vscode
40+
ENTRYPOINT ["code", "serve-web", "--host", "0.0.0.0", "--without-connection-token"]

0 commit comments

Comments
 (0)