plane/app/Dockerfile.web
sriram veeraghanta 1538b99a28 removing trubo
2023-04-21 19:30:36 -04:00

31 lines
639 B
Docker

FROM node:18-alpine AS builder
RUN apk add --no-cache libc6-compat
RUN apk update
# Set working directory
WORKDIR /app
# Install dependencies
RUN yarn install --frozen-lockfile
COPY . .
# build
RUN yarn build
FROM node:18-alpine AS runner
WORKDIR /app
# Don't run production as root
RUN addgroup --system --gid 1001 plane
RUN adduser --system --uid 1001 captain
USER captain
COPY --from=builder /app/next.config.js .
COPY --from=builder /app/package.json .
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
ENV NEXT_TELEMETRY_DISABLED 1
EXPOSE 3000