generated from ngyngcphu/react-template
-
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.
feat(devops): add Dockerfile and docker-compose.yml
- Loading branch information
Showing
10 changed files
with
30 additions
and
5,125 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
Dockerfile | ||
.env.example | ||
.git | ||
.husky | ||
.github |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG NODE_VERSION=18.17.1 | ||
|
||
FROM node:${NODE_VERSION}-alpine as development | ||
WORKDIR /ssps-fe | ||
COPY package.json yarn.lock tsconfig.json tsconfig.node.json vite.config.ts index.html *.config.cjs .env ./ | ||
COPY ./src ./src | ||
RUN yarn install && yarn build | ||
|
||
FROM node:${NODE_VERSION}-alpine as production | ||
WORKDIR /ssps-fe | ||
COPY --from=development /ssps-fe/dist . | ||
RUN yarn global add serve | ||
|
||
EXPOSE 7000 | ||
CMD serve -s . -l 7000 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.