oneuptime/helm-chart/Dockerfile.dev
2022-03-22 14:33:59 +00:00

44 lines
805 B
Docker

#
# OneUptime Docs Dockerfile
#
# Pull base image nodejs image.
FROM node:alpine
# Install bash.
RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
# Install common-server
RUN mkdir /usr/src
RUN mkdir /usr/src/common-server
WORKDIR /usr/src/common-server
COPY ./common-server/package*.json /usr/src/common-server/
RUN npm ci
COPY ./common-server /usr/src/common-server
#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" ]