Skip to content

Commit 867da9a

Browse files
feat: trouxe as atualizações da develop
1 parent 8b86b6d commit 867da9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3326
-378
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Applications
2-
FRONTEND_PORT=
2+
FRONTEND_PORT=8000

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
ARG PORT
12
FROM node:22-alpine as base
23
RUN apk add --no-cache g++ make py3-pip libc6-compat
3-
WORKDIR /app
4+
WORKDIR /frontend
45
COPY package*.json ./
5-
EXPOSE ${FRONTEND_PORT}
6+
EXPOSE ${PORT}
67

78
FROM base as builder
89
WORKDIR /app
@@ -28,6 +29,7 @@ CMD ["npm", "start"]
2829

2930
FROM base as dev
3031
ENV NODE_ENV=development
32+
ENV PORT=${PORT}
3133
RUN npm install
3234
COPY . .
33-
CMD ["npm", "run", "dev"]
35+
CMD ["npm", "run", "dev", "-p ${PORT}"]

0 commit comments

Comments
 (0)