mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
37 lines
583 B
Docker
Executable File
37 lines
583 B
Docker
Executable File
#
|
|
# Fyipe-backend Dockerfile
|
|
#
|
|
|
|
# Pull base image nodejs image.
|
|
FROM ubuntu:latest
|
|
|
|
#SET ENV Variables.
|
|
ENV PRODUCTION=true
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y curl software-properties-common
|
|
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
|
RUN apt-get install -y nodejs
|
|
|
|
#Update NPM
|
|
RUN npm install -g npm
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install app dependencies
|
|
COPY package.json /usr/src/app/
|
|
RUN npm install
|
|
|
|
|
|
# Bundle app source
|
|
COPY . /usr/src/app
|
|
|
|
# Expose ports.
|
|
# - 3002: Fyipe-backend
|
|
EXPOSE 3002
|
|
|
|
#Run the app
|
|
CMD [ "npm", "start"]
|