oneuptime/helm-chart/Dockerfile.dev

44 lines
808 B
Docker
Raw Normal View History

2021-06-21 21:08:35 +00:00
#
2021-11-22 23:10:19 +00:00
# OneUptime Docs Dockerfile
2021-06-21 21:08:35 +00:00
#
# Pull base image nodejs image.
2022-02-12 09:51:52 +00:00
FROM node:17-alpine
2021-06-21 21:08:35 +00:00
2022-01-18 12:34:39 +00:00
# Install bash.
RUN apk update && apk add bash && apk add curl
2021-08-08 12:02:26 +00:00
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
2022-03-01 19:45:52 +00:00
# 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
2021-06-21 21:08:35 +00:00
#SET ENV Variables
WORKDIR /usr/src/app
# Copy package.json files
2022-01-19 12:36:43 +00:00
COPY ./helm-chart/package.json /usr/src/app/package.json
COPY ./helm-chart/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-06-21 22:07:40 +00:00
RUN npm ci
2021-06-21 21:08:35 +00:00
# Expose ports.
2021-11-22 23:10:19 +00:00
# - 3423: OneUptime Helm Chart Server
2021-06-21 21:08:35 +00:00
EXPOSE 3423
# Expose Debugger port
EXPOSE 9229
#Run the app
CMD [ "npm", "run", "dev" ]