-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (28 loc) · 693 Bytes
/
Dockerfile
File metadata and controls
40 lines (28 loc) · 693 Bytes
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
38
39
40
FROM alpine:3.11
MAINTAINER Michael Karlesky <michael@karlesky.net>
ENV PROJECT_HOME /lab
ENV DR_SURLY_HOME /home/drsurly
RUN set -ex \
&& apk update \
&& apk --no-cache add \
coreutils \
bash \
unzip \
gcc \
libc-dev \
make
##
## Copy assets for inclusion in image
##
COPY assets/course /usr/local/bin
COPY assets/start_lab* $DR_SURLY_HOME/
COPY assets/awesomesauce.zip $DR_SURLY_HOME/
RUN chmod +x /usr/local/bin/course
##
## Programming environment setup
##
RUN mkdir $PROJECT_HOME
# Working directory at container launch
WORKDIR $PROJECT_HOME
# When the container launches, run a shell that launches in WORKDIR
CMD ["/bin/sh"]