mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
27 lines
399 B
Docker
27 lines
399 B
Docker
#
|
|
# Fyipe:script-runner Dockerfile
|
|
#
|
|
|
|
# Pull base image nodejs image.
|
|
FROM node:16
|
|
|
|
#SET ENV Variables
|
|
ENV PRODUCTION=true
|
|
|
|
RUN mkdir -p /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 . /usr/src/app
|
|
|
|
# Expose ports.
|
|
# - 3009: Fyipe:script-runner
|
|
EXPOSE 3009
|
|
|
|
#Run the app
|
|
CMD [ "npm", "start"] |