-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
FROM node:14-alpine | ||
# Env | ||
|
||
ENV NODE_ENV production | ||
# Set the timezone in docker | ||
# Create Directory for the Container | ||
|
||
WORKDIR /opt/orbs | ||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
|
||
COPY package*.json ./ | ||
COPY .version ./version | ||
|
||
RUN apk add --no-cache git | ||
RUN npm install | ||
# If you are building your code for production | ||
# RUN npm ci --only=production | ||
|
||
# Bundle app source | ||
COPY dist ./dist | ||
|
||
# Start | ||
CMD [ "npm", "start" ] | ||
EXPOSE 8080 |