mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
29 lines
511 B
Docker
Executable File
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" ] |