Skip to content

Commit 3bc2e0d

Browse files
committed
dockerize
1 parent 2c0e54b commit 3bc2e0d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:15.3.0-alpine3.10
2+
3+
LABEL maintainer="[email protected]"
4+
5+
RUN apk add --no-cache bash
6+
7+
RUN mkdir /app
8+
9+
WORKDIR /app
10+
11+
# Add entire student fork (overwrites previously added files)
12+
ARG SUBMISSION_SUBFOLDER
13+
ADD $SUBMISSION_SUBFOLDER /app
14+
15+
# for Testing
16+
# ADD . .
17+
18+
RUN npm install
19+
RUN chmod +x test.sh

test.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
CI=true npm test

0 commit comments

Comments
 (0)