Files
oneuptime/licensing/Dockerfile
Nawaz Dhandala 4c94557f34 fix dockerfile
2022-01-21 21:10:14 +00:00

43 lines
786 B
Docker

#
# OneUptime-licensing 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"]
# 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 --only=production
COPY ./common-server /usr/src/common-server
#SET ENV Variables
ENV PRODUCTION=true
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY ./licensing/package*.json /usr/src/app/
RUN npm ci --only=production
# Bundle app source
COPY ./licensing /usr/src/app
# Expose ports.
# - 3004: OneUptime-licensing
EXPOSE 3004
#Run the app
CMD [ "npm", "start"]