Skip to content

Commit

Permalink
feat(devops): add Dockerfile and docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyngcphu committed Sep 13, 2023
1 parent 0d8ae93 commit ed9065f
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 5,125 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
Dockerfile
.env.example
.git
.husky
.github
15 changes: 15 additions & 0 deletions Dockerfile
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
12 changes: 0 additions & 12 deletions __mock_server__/Dockerfile

This file was deleted.

Loading

0 comments on commit ed9065f

Please sign in to comment.