mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
27 lines
504 B
Docker
27 lines
504 B
Docker
#
|
|
# Builder
|
|
#
|
|
FROM mhart/alpine-node:14 AS builder
|
|
WORKDIR /src
|
|
|
|
# Disable Husky as it will fail
|
|
ENV HUSKY 0
|
|
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY tsconfig.json .babelrc.js next.config.js next-env.d.ts ./
|
|
COPY src src
|
|
|
|
RUN yarn ui:build
|
|
RUN yarn install --frozen-lockfile --prod
|
|
|
|
#
|
|
# Output layer
|
|
#
|
|
FROM mhart/alpine-node:slim-14 AS output
|
|
|
|
COPY --from=builder /src .
|
|
|
|
ENV PORT=6601
|
|
ENTRYPOINT [ "/bin/sh", "-c", "/usr/bin/node node_modules/.bin/next start -p $PORT" ]
|