mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
Added Docker file
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
# Set base image
|
||||
FROM node:8
|
||||
|
||||
# Set working directory for the app in container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json to container's /app directory and install dependencies
|
||||
COPY package.json /app
|
||||
RUN npm install
|
||||
COPY . /app
|
||||
|
||||
# Launch application
|
||||
CMD node index.js
|
||||
|
||||
# Expose container's port 8081 to the outside
|
||||
EXPOSE 8081
|
||||
Reference in New Issue
Block a user