-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 722 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
# Use an official Node runtime as a parent image
FROM node:alpine
# Install Bash
RUN apk add bash
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy the current directory contents into the container at /usr/src/app
# COPY . .
# Install any needed packages
# Uncomment the following line if you want to perform npm install during the build
# RUN npm install
# Make port 3000 available to the world outside this container
EXPOSE 3000
# Define environment variable
# ENV NODE_ENV development
# ENV WATCHPACK_POLLING true
# Run npm start when the container launches
# Uncomment the following line if you want to start your application automatically
# CMD ["npm", "start"]
CMD ["npm", "run", "dev"]