mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
34 lines
517 B
Docker
34 lines
517 B
Docker
#
|
|
# HTTP Test Server Dockerfile
|
|
#
|
|
|
|
# Pull base image nodejs image.
|
|
FROM node:16
|
|
|
|
#SET ENV Variables
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
|
|
|
# Install nodemon
|
|
RUN npm install nodemon -g
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy package.json files
|
|
COPY ./package.json /usr/src/app/package.json
|
|
COPY ./package-lock.json /usr/src/app/package-lock.json
|
|
|
|
|
|
# Install app dependencies
|
|
RUN npm ci
|
|
|
|
# Expose ports.
|
|
# - 3004: Fyipe-licensing
|
|
EXPOSE 3004
|
|
|
|
# Expose Debugger port
|
|
EXPOSE 9229
|
|
|
|
#Run the app
|
|
CMD [ "npm", "run", "dev" ]
|