Commit ff8e9c0d authored by Administrator's avatar Administrator

Update Dockerfile.frontend via Son of Anton

parent 7caafb04
FROM node:20-alpine AS base
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Copy everything needed
COPY frontend/package*.json ./
RUN npm install --legacy-peer-deps
COPY frontend/ ./
COPY shared/ ../shared/
ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build
# Production
FROM node:20-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
COPY --from=base /app/.next/standalone ./
COPY --from=base /app/.next/static ./.next/static
COPY --from=base /app/public ./public
EXPOSE 3000
CMD ["node", "server.js"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment