mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
31 lines
404 B
Docker
Executable File
31 lines
404 B
Docker
Executable File
#
|
|
# Accounts Dockerfile
|
|
#
|
|
|
|
# Pull base image nodejs image.
|
|
FROM node:10
|
|
|
|
#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 install
|
|
|
|
# Copy app source
|
|
COPY . /usr/src/app
|
|
|
|
# Bundle app source
|
|
RUN npm run build
|
|
|
|
# Expose ports.
|
|
# - 3003: accounts
|
|
EXPOSE 3003
|
|
|
|
#Run the app
|
|
CMD [ "npm", "start" ]
|