Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 80bf5f93 authored by Sam Brow's avatar Sam Brow
Browse files

[ADD] Add docker configs

parent ebdcf95a
FROM node:10
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
CMD [ "node", "index.js" ]
# How to RUN (-t supplies an image name)
# docker run -p 8081:8081 -d umichctf-hwf2020-js_challenge_1
# How to list running docker images
# docker ps
# to STOP
# docker ps
# will give the id such as
# 7be2a58c81bb umichctf-hwf2020-js_challenge_1 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes>8081/tcp sharp_brown
# docker stop 7be2a58c81bb
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment