-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (26 loc) · 729 Bytes
/
Dockerfile
File metadata and controls
42 lines (26 loc) · 729 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
41
42
FROM --platform=linux/amd64 i686/ubuntu
RUN apt-get update
RUN apt-get install -y \
flex \
bison \
build-essential \
csh \
openjdk-6-jdk \
libxaw7-dev \
nano \
wget
RUN mkdir /usr/class
WORKDIR /usr/class
RUN useradd -ms /bin/bash student
RUN wget -cO - https://courses.edx.org/asset-v1:StanfordOnline+SOE.YCSCS1+1T2020+type@asset+block@student-dist.tar.gz > student-dist.tar.gz
RUN tar -xzf student-dist.tar.gz
RUN rm student-dist.tar.gz
RUN chown student /usr/class
COPY ./nanox /usr/class/bin/nanox
RUN chown student /usr/class/bin/nanox
RUN chmod +x /usr/class/bin/nanox
USER student
WORKDIR /home/student
RUN ln -s /usr/class /home/student/cool
ENV PATH="$PATH:/usr/class/bin"
CMD /bin/bash