-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 871 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
FROM buildpack-deps:jessie-scm
RUN apt-get update && apt-get -f install -y && apt-get install -y --no-install-recommends \
wget \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& groupadd -r node \
&& useradd -r -m -g node node
RUN mkdir -p /home/node/app \
&& chown -R node:node /home/node
USER node
WORKDIR /home/node
# Create a non-privileged user to do most all the work as.
# We do this now to create the home directory.
# RUN groupadd -r node && useradd -r -m -g node node
# Do the rest in the 'node' user home directory.
# WORKDIR /home/node
# Set permissions before we leave.
# RUN chown -R node:node /home/node/
# Change to the node user for execution.
# USER node
# RUN curl https://install.meteor.com | sh
# ENV PATH="/home/node/.meteor:${PATH}"
# CMD [ "meteor", "npm", "install", "--global", "node-gyp", "node-pre-gyp" ]