-
Notifications
You must be signed in to change notification settings - Fork 82
/
Dockerfile-dev
22 lines (16 loc) · 713 Bytes
/
Dockerfile-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM reactioncommerce/meteor:2.5.0-v1
# hadolint ignore=DL3002
USER root
# Ensure that all files will be linked in owned by node user.
# Every directory that will be listed in `volumes` section of
# docker-compose.yml needs to be pre-created and chown'd here.
# See https://github.com/docker/compose/issues/3270#issuecomment-363478501
RUN mkdir -p /usr/local/src/app/node_modules \
&& mkdir -p /usr/local/src/app/.meteor/local \
&& chown node /usr/local/src/app \
&& chown node /usr/local/src/app/node_modules \
&& chown node /usr/local/src/app/.meteor/local
WORKDIR /usr/local/src/app
USER node
ENV PATH $PATH:/usr/local/src/app/node_modules/.bin:/home/node/.meteor
CMD ["npm", "run", "start:dev"]