Skip to content

Commit

Permalink
🐛(#179) resolução dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriAlves5 committed Oct 30, 2023
1 parent 857e059 commit e3517a3
Show file tree
Hide file tree
Showing 3 changed files with 2,008 additions and 1,798 deletions.
24 changes: 14 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
FROM node:16-alpine AS development
# Development stage
FROM node:18.18-bookworm-slim AS development
ENV NODE_ENV development

# Directory
WORKDIR /app
# Install dependencies
COPY package.json .
COPY yarn.lock .
RUN yarn install
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init

# Install all dependencies
COPY --chown=node:node package*.json /app/
RUN npm ci

# Copy files
COPY . .
RUN yarn build
# Expose de port
COPY --chown=node:node . /app/

# Expose the port
EXPOSE 3000
# Start de program
CMD [ "npm", "start" ]


CMD ["dumb-init", "npm", "start"]
Loading

0 comments on commit e3517a3

Please sign in to comment.