This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from derogab/last-v1
Last v1
- Loading branch information
Showing
15 changed files
with
41,092 additions
and
12,842 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
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,25 +1,19 @@ | ||
# build environment | ||
FROM node:10 as build | ||
FROM node:14 | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
# Set environments | ||
ENV PATH /usr/src/app/node_modules/.bin:$PATH | ||
|
||
# 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 yarn.lock ./ | ||
RUN yarn | ||
COPY package*.json ./ | ||
RUN npm install | ||
|
||
# Copy app | ||
COPY . . | ||
# Build | ||
RUN yarn run build | ||
|
||
# production environment | ||
FROM nginx:stable-alpine | ||
# Copy app | ||
COPY --from=build /usr/src/app/build /usr/share/nginx/html | ||
# Expose ports | ||
EXPOSE 80 | ||
EXPOSE 3000 | ||
|
||
# Run command | ||
CMD ["nginx", "-g", "daemon off;"] | ||
CMD [ "npm", "start" ] |
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
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
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
Oops, something went wrong.