Files
oneuptime/helm-chart/Dockerfile.dev
Nawaz Dhandala d3069a4f71 fix docker files
2022-01-19 12:36:43 +00:00

36 lines
586 B
Docker

#
# OneUptime Docs Dockerfile
#
# Pull base image nodejs image.
FROM node:17-alpine
# Install bash.
RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
#SET ENV Variables
WORKDIR /usr/src/app
# Copy package.json files
COPY ./helm-chart/package.json /usr/src/app/package.json
COPY ./helm-chart/package-lock.json /usr/src/app/package-lock.json
# Install app dependencies
RUN npm ci
# Expose ports.
# - 3423: OneUptime Helm Chart Server
EXPOSE 3423
# Expose Debugger port
EXPOSE 9229
#Run the app
CMD [ "npm", "run", "dev" ]