Skip to content

Commit

Permalink
#5...
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicwest committed Oct 24, 2023
1 parent 1de2909 commit d8ba15e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Install dependencies only when needed
FROM node:16-alpine AS deps
FROM node:16-alpine AS build
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat

WORKDIR /app
WORKDIR /usr/src/app

COPY package.json .
COPY yarn.lock .
Expand All @@ -18,7 +17,7 @@ WORKDIR /app
ENV NODE_ENV production

# Copy production build
COPY --from=builder /app/dist/ ./dist/
COPY --from=build /app/dist/ ./dist/

# Expose application port
EXPOSE 3000
Expand Down

0 comments on commit d8ba15e

Please sign in to comment.