Skip to content

Commit

Permalink
Merge branch 'main' into basegitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Aug 5, 2024
2 parents 2f87628 + 4938977 commit ad67b39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM node:20 AS build
WORKDIR /usr/src/app
COPY . .

RUN npm install \
&& npm run build
RUN --mount=type=cache,target=/root/.npm \
npm install && npm run build

# Stage 2: Create the final image without source files
FROM ghcr.io/ticketz-oss/node
Expand Down
5 changes: 2 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ COPY . .

ENV NODE_OPTIONS --openssl-legacy-provider

RUN npm install \
&& echo -e "\n\nBulding...\n" \
&& npm run build
RUN --mount=type=cache,target=/root/.npm \
npm install && npm run build

FROM ghcr.io/ticketz-oss/nginx-alpine

Expand Down

0 comments on commit ad67b39

Please sign in to comment.