-
Notifications
You must be signed in to change notification settings - Fork 76
/
Dockerfile
21 lines (16 loc) · 672 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# WARNING
# This Dockerfile is intended for development purposes only. Do not use it for production deployments
FROM node:18-alpine
WORKDIR /hub/
RUN mkdir -p /hub/app/ && \
apk add --no-cache git
# install npm in /hub and mount the app in /hub/app so that the installed node_modules
# doesn't trample node_modules on your computer. see https://www.docker.com/blog/keep-nodejs-rockin-in-docker/ for details
COPY docker package.json package-lock.json /hub/
RUN chmod +x /hub/entrypoint.sh && \
npm install
# make webpack-dev-sever and other node packages executable
ENV PATH /hub/node_modules/.bin:$PATH
WORKDIR /hub/app
EXPOSE 8002
CMD ["/hub/entrypoint.sh"]