generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 3
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
87e0686
commit 3ec9f47
Showing
1,226 changed files
with
2,276 additions
and
197,387 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 was deleted.
Oops, something went wrong.
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,24 +1,8 @@ | ||
FROM node:16-alpine as builder | ||
WORKDIR '/client' | ||
WORKDIR './client' | ||
COPY ./package.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm ci | ||
RUN npm run build | ||
|
||
FROM nginx:alpine | ||
COPY --from=builder /client/build /usr/share/nginx/html | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
CMD ["nginx", "-g", "daemon off;"] | ||
|
||
# To test it alone, run "docker build -t client ." inside /client | ||
# To run the image, run "docker run -d -p 3002:3002 client" inside /client | ||
|
||
# For dev mode | ||
# FROM node:16-alpine as builder | ||
# WORKDIR './client' | ||
# COPY ./package.json ./ | ||
# RUN npm install | ||
# COPY . . | ||
# # RUN npm run build // only use for deployment | ||
# EXPOSE 3002 | ||
# CMD ["npm", "start"] | ||
# RUN npm run build // only use for deployment | ||
EXPOSE 3002 | ||
CMD ["npm", "start"] |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.