Skip to content

Commit

Permalink
Deploy quase funcionando, arrumando build
Browse files Browse the repository at this point in the history
  • Loading branch information
leosfreitas committed Dec 3, 2024
1 parent 31dcea5 commit 2165bbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
FROM node:18-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build

FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
ports:
- "80:80"
restart: always
depends_on:
- backend

backend:
build:
Expand Down

0 comments on commit 2165bbd

Please sign in to comment.