-
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.
- Loading branch information
1 parent
857e059
commit e3517a3
Showing
3 changed files
with
2,008 additions
and
1,798 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 |
---|---|---|
@@ -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"] |
Oops, something went wrong.