-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 809 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
27
28
FROM node:12
MAINTAINER Zane Claes <zane@technicallywizardry.com>
# Install global dependencies
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
python-pip git curl make g++ udev && \
apt-get -y autoclean
# Install Docker, for access within the container.
ENV VERSION=19.03.15
RUN curl -sSL https://get.docker.com | sh
RUN usermod -aG docker node
# Create user to run the application
USER node
WORKDIR /home/node
# -------- Application Code ---------
# note: add any sensitive or large files to .dockerignore
ADD --chown=node:node . /home/node
# The node_modules are intentionally excluded by .dockerignore.
# Some modules have architecture-dependent install candidates, which are resolved here.
RUN npm install
EXPOSE 8000
ENTRYPOINT ["/home/node/bin/docker-entrypoint"]