2020-03-22 11:39:12 +00:00
|
|
|
# Pull base image nodejs image.
|
2022-01-18 11:59:26 +00:00
|
|
|
FROM node:17-alpine
|
2020-03-22 11:39:12 +00:00
|
|
|
|
2021-08-08 12:02:26 +00:00
|
|
|
#Use bash shell by default
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
2020-03-22 11:39:12 +00:00
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
# Install app dependencies
|
|
|
|
COPY package*.json /usr/src/app/
|
2020-11-18 10:04:24 +00:00
|
|
|
RUN npm ci --only=production
|
2020-03-22 11:39:12 +00:00
|
|
|
|
|
|
|
# Bundle app source
|
|
|
|
COPY . /usr/src/app
|
|
|
|
|
|
|
|
# Expose ports.
|
2021-11-22 23:10:19 +00:00
|
|
|
# - 3423: OneUptime Helm Chart Server
|
2020-03-22 11:39:12 +00:00
|
|
|
EXPOSE 3423
|
|
|
|
|
|
|
|
#Run the app
|
|
|
|
CMD [ "npm", "start" ]
|