Skip to content

Commit

Permalink
feature(devops): automated deploy for dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
fagomezra committed Sep 25, 2023
1 parent 9333309 commit 7deb9e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hapi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# ---------- Base ----------
FROM node:16.15.1 as base
FROM node:16.20.0 as base
WORKDIR /app

# ---------- Builder ----------
FROM base AS builder
COPY package.json yarn.lock ./
RUN yarn --ignore-optional
COPY ./src ./src
COPY ./ ./
RUN yarn build

# ---------- Release ----------
FROM base AS release
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/src ./src
COPY --from=builder /app/dist ./src
USER node
CMD ["node", "./src/index.js"]

0 comments on commit 7deb9e4

Please sign in to comment.