oneuptime/dashboard/Dockerfile.dev

38 lines
804 B
Docker
Raw Normal View History

2021-06-21 21:08:35 +00:00
#
# Fyipe Docs Dockerfile
#
# Pull base image nodejs image.
FROM node:16
2021-08-08 12:02:26 +00:00
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
2021-06-21 21:08:35 +00:00
#SET ENV Variables
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
2021-06-22 08:24:10 +00:00
# Install nodemon
RUN npm install nodemon -g
2021-06-21 21:08:35 +00:00
WORKDIR /usr/src/app
# Copy package.json files
COPY ./package.json /usr/src/app/package.json
2021-06-21 22:07:40 +00:00
COPY ./package-lock.json /usr/src/app/package-lock.json
2021-06-21 21:47:55 +00:00
2021-06-21 21:08:35 +00:00
# Install app dependencies
2021-08-16 12:54:00 +00:00
RUN npm ci --legacy-peer-deps
2021-06-21 21:08:35 +00:00
2021-06-25 13:13:48 +00:00
# Create .cache folder with necessary permissions for React-based apps
# https://stackoverflow.com/questions/67087735/eacces-permission-denied-mkdir-usr-app-node-modules-cache-how-can-i-creat
RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache
2021-06-21 21:08:35 +00:00
# Expose ports.
# - 1445: Fyipe Docs
EXPOSE 1445
#Run the app
CMD [ "npm", "run", "dev" ]