forked from open-source-labs/Docketeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
28 lines (21 loc) · 790 Bytes
/
dockerfile
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
27
28
# 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
# changed to most recent version!
ENV DOCKERVERSION=20.10.23
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
# Start the app
# CMD ["npm", "start"]