Skip to content

Commit

Permalink
fixes app building in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Oct 19, 2023
1 parent 40248c0 commit 22dbf97
Show file tree
Hide file tree
Showing 3 changed files with 890 additions and 615 deletions.
4 changes: 3 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM node:18.15-bullseye AS deps
WORKDIR /app
COPY .yarn ./.yarn
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install --immutable

RUN corepack enable && corepack prepare
RUN yarn install

# If using npm with a `package-lock.json` comment out above and use below instead
# COPY package.json package-lock.json ./
Expand Down
5 changes: 3 additions & 2 deletions frontend/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ WORKDIR /app
# COPY .yarn ./.yarn # TODO: no idea if we want this or not, not in repo
COPY package.json yarn.lock .yarnrc.yml ./

RUN yarn install --immutable
RUN corepack enable && corepack prepare
RUN yarn install

# If using npm with a `package-lock.json` comment out above and use below instead
# COPY package.json package-lock.json ./
Expand Down Expand Up @@ -53,4 +54,4 @@ EXPOSE 3000

ENV PORT 3000

CMD ["node", "server.js"]
CMD ["node", "server.js"]
Loading

0 comments on commit 22dbf97

Please sign in to comment.