forked from Zuehlke/poinz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 876 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
29
30
31
32
33
34
# PoinZ docker file
# For the following commands, we expect that your user is part of the "docker" usergroup
# (then you can run the docker command without "sudo")
# use the following command to build
# docker build -t xeronimus/poinz .
# start the container with interactive shell
# docker run -i -t xeronimus/poinz /bin/bash
# start the container locally in detached mode
# docker run -p 3000:3000 -d xeronimus/poinz
# node 14.15.3 LTS aka "lts-buster" see https://hub.docker.com/_/node
FROM node:lts-buster
# Create app directory
RUN mkdir -p /usr/src/poinz/public
RUN mkdir -p /usr/src/poinz/lib
WORKDIR /usr/src/poinz
# Bundle app source
COPY deploy/public /usr/src/poinz/public
COPY deploy/lib /usr/src/poinz/lib
COPY deploy/package.json /usr/src/poinz/
# install app dependencies
RUN npm install --production
# expose port 3000
EXPOSE 3000
CMD npm start