forked from datamindedacademy/containerization_with_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
36 lines (30 loc) · 1.22 KB
/
.gitpod.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
FROM gitpod/workspace-full
# This env var is used to force the
# rebuild of the Gitpod 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/*
# Copy exercices content into the image
COPY --chown=gitpod content/ /home/gitpod/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/gitpod/docker-exercises/solutions/exercise_2 /bin/dataminded && \
mv /home/gitpod/docker-exercises/solutions/exercise_3 /bin/acme && \
mv /home/gitpod/docker-exercises/solutions/exercise_4 /bin/blizzard && \
mv /home/gitpod/docker-exercises/solutions/exercise_5 /bin/piper && \
mv /home/gitpod/docker-exercises/solutions/exercise_6 /bin/abstergo && \
mv /home/gitpod/docker-exercises/solutions/exercise_7 /bin/glados && \
rm -rf /home/gitpod/docker-exercises/solutions
USER gitpod