forked from humbertotm/autograding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (27 loc) · 780 Bytes
/
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
38
39
FROM java:8
# preserve Java 8 from the maven install.
RUN mv /etc/alternatives/java /etc/alternatives/java8
RUN apt-get update -y && apt-get install maven -y
# Restore Java 8
RUN mv -f /etc/alternatives/java8 /etc/alternatives/java
RUN ls -l /usr/bin/java && java -version
RUN apt-get update
# RUN mkdir "/code"
# Install Ruby
RUN apt-get install -y ruby
# Install Rspec
RUN gem install rspec
# Install NodeJS
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get update -qqy && apt-get -qqyy install \
nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g mocha
# RUN apt-get install -y build-essential
WORKDIR /usr/src/autograding
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["node", "src/app.js"]
# CMD ["/bin/bash"]