-
-
Notifications
You must be signed in to change notification settings - Fork 247
Expand file tree
/
Copy pathdockerfile.dev
More file actions
26 lines (19 loc) · 744 Bytes
/
dockerfile.dev
File metadata and controls
26 lines (19 loc) · 744 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.js runtime as a parent image
FROM node
# Set the working directory to /app
WORKDIR /app
# Set the PATH env variable
# ENV PATH="/usr/local/bin:${PATH}"
# COPY /usr/local/bin/docker /usr/local/bin/docker
ENV DOCKERVERSION=19.03.12
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
&& rm docker-${DOCKERVERSION}.tgz
COPY package*.json ./
# Run npm install to install app dependencies
RUN npm install
# Copy the current directory contents into the container at /app
COPY . .
# Make port 4000 available to the world outside this container
EXPOSE 4000
# CMD ["npm", "run", "dev"]