Skip to content

Commit

Permalink
ci: updated api dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis3797 committed May 15, 2024
1 parent 1859e19 commit 7f1558a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM node:20-alpine AS build
WORKDIR /app

# Copy package.json and to the container
COPY ./apps/api/package.json ./
COPY package.json ./

RUN cat ./package.json

Expand All @@ -19,7 +19,7 @@ RUN apk add --no-cache --virtual .build-deps \
&& yarn cache clean

# Copy the rest of the application code to the container
COPY ./apps/api/ .
COPY . .


# Generate prisma client
Expand All @@ -35,7 +35,7 @@ FROM node:20-alpine AS run
WORKDIR /app

# Copy package.json and yarn.lock to the container
COPY ./apps/api/package.json ./
COPY package.json ./

RUN cat ./package.json

Expand Down Expand Up @@ -70,4 +70,4 @@ RUN yarn prisma generate
EXPOSE 4040

# Start the application with dumb-init
CMD ["dumb-init", "node", "app/dist/index.js"]
CMD ["dumb-init", "node", "index.js"]

0 comments on commit 7f1558a

Please sign in to comment.