-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
37 lines (31 loc) · 1.22 KB
/
Dockerfile
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
32
33
34
35
36
37
FROM mcr.microsoft.com/vscode/devcontainers/base:bullseye
# This env var is used to force the
# rebuild of the Codespaces environment when needed
ENV TRIGGER_REBUILD 1
USER root
RUN apt-get update && \
apt-get install -y wget git tree ssh nano sudo nmap man tmux curl && \
apt-get clean && \
rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
ENV HOME=/home/vscode
# Copy exercices content into the image
COPY --chown=vscode content/ $HOME/docker-exercises
# Set up the exercices
# Set lock permissions for exercise 6
# Copy solutions of exercises in hidden spots
RUN mkdir /bin/abstergo && \
mkdir /bin/piper && \
mkdir /bin/blizzard && \
mkdir /bin/acme && \
mkdir /bin/glados && \
mkdir /bin/dataminded && \
mv $HOME/docker-exercises/solutions/exercise_2 /bin/dataminded && \
mv $HOME/docker-exercises/solutions/exercise_3 /bin/acme && \
mv $HOME/docker-exercises/solutions/exercise_4 /bin/blizzard && \
mv $HOME/docker-exercises/solutions/exercise_5 /bin/piper && \
mv $HOME/docker-exercises/solutions/exercise_6 /bin/abstergo && \
mv $HOME/docker-exercises/solutions/exercise_7 /bin/glados && \
rm -rf $HOME/docker-exercises/solutions
USER vscode