-
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
1 parent
6b38018
commit 07f4b60
Showing
1 changed file
with
0 additions
and
48 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 |
---|---|---|
|
@@ -18,51 +18,3 @@ COPY . ./ | |
EXPOSE 3000 | ||
# start app | ||
CMD ["npm", "start"] | ||
|
||
# FROM node | ||
# WORKDIR /usr/src/app | ||
# COPY package*.json ./ | ||
# ADD package.json /usr/src/app/package.json | ||
# RUN npm install | ||
# # RUN npm install [email protected] -g | ||
# COPY . . | ||
# EXPOSE 3000 | ||
# CMD ["npm ","start"] | ||
|
||
|
||
# # pull official base image | ||
# FROM node:10 AS builder | ||
|
||
# # set working directory | ||
# WORKDIR /app | ||
|
||
|
||
# # install app dependencies | ||
# #copies package.json and package-lock.json to Docker environment | ||
# COPY package.json ./ | ||
|
||
# # Installs all node packages | ||
# RUN npm install | ||
|
||
|
||
# # Copies everything over to Docker environment | ||
# COPY . ./ | ||
# RUN npm run build | ||
|
||
# #Stage 2 | ||
# ####################################### | ||
# #pull the official nginx:1.19.0 base image | ||
# FROM nginx:1.19.0 | ||
# #copies React to the container directory | ||
# # Set working directory to nginx resources directory | ||
# WORKDIR /usr/share/nginx/html | ||
# # Remove default nginx static resources | ||
# RUN rm -rf ./* | ||
# # Copies static resources from builder stage | ||
# COPY --from=builder /app/build . | ||
# # Containers run nginx with global directives and daemon off | ||
# ENTRYPOINT ["nginx", "-g", "daemon off;"] | ||
|
||
|
||
# FROM nginx:1.17 | ||
# COPY build/ /usr/share/nginx/html |