Files
oneuptime/api-docs/Dockerfile
Nawaz Dhandala d3069a4f71 fix docker files
2022-01-19 12:36:43 +00:00

29 lines
511 B
Docker
Executable File

# 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"]
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN mkdir /usr/src
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json /usr/src/app/
RUN npm ci --only=production
# Bundle app source
COPY ./api-docs /usr/src/app
# Expose ports.
# - 1445: OneUptime Docs
EXPOSE 1445
#Run the app
CMD [ "npm", "start" ]