Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdanh27600 committed Aug 27, 2023
1 parent 2b60d19 commit 374fe9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ARG NEXT_PUBLIC_SHORT_DOMAIN
CMD ["echo", "NEXT_PUBLIC_SHORT_DOMAIN=$NEXT_PUBLIC_SHORT_DOMAIN"]
WORKDIR /app
COPY package.json yarn.lock prisma .env scripts/update_ip_db.sh ./
RUN if [ "$NEXT_PUBLIC_SHORT_DOMAIN" = "true" ] ; then ./scripts/short_clean_build.sh; else echo 'Keep building original src'; fi
RUN npm install
# add sharp for image production
RUN npm install sharp
Expand All @@ -18,6 +17,7 @@ RUN npm install sharp
FROM dependencies AS builder
WORKDIR /app
COPY . .
RUN if [ "$NEXT_PUBLIC_SHORT_DOMAIN" = "true" ] ; then ./scripts/short_clean_build.sh; else echo 'Keep building original src'; fi
RUN npm run build
# COPY ./prod.env ./.env
# RUN npm run db:push
Expand Down

0 comments on commit 374fe9c

Please sign in to comment.