2024-09-13 16:54:46 +00:00
|
|
|
FROM node AS base
|
2023-08-04 17:28:46 +00:00
|
|
|
|
2023-08-19 04:18:13 +00:00
|
|
|
FROM base AS builder
|
2023-08-04 17:28:46 +00:00
|
|
|
WORKDIR /usr/src/todoblue
|
|
|
|
|
2024-09-13 17:05:46 +00:00
|
|
|
COPY ./package.json ./yarn.lock .npmrc ./
|
2023-08-19 04:18:13 +00:00
|
|
|
RUN yarn install --frozen-lockfile
|
2023-08-05 03:19:13 +00:00
|
|
|
|
|
|
|
COPY ./ ./
|
2023-08-04 17:28:46 +00:00
|
|
|
RUN yarn run build
|
|
|
|
|
2023-08-19 04:18:13 +00:00
|
|
|
|
|
|
|
FROM base AS runner
|
|
|
|
WORKDIR /usr/lib/todoblue
|
|
|
|
|
|
|
|
COPY --from=builder /usr/src/todoblue/public ./public
|
|
|
|
COPY --from=builder /usr/src/todoblue/.next/standalone ./
|
2023-08-19 04:23:43 +00:00
|
|
|
COPY --from=builder /usr/src/todoblue/.next/static ./.next/static
|
2023-08-19 04:18:13 +00:00
|
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
ENTRYPOINT ["node", "server.js"]
|
2023-08-05 00:39:32 +00:00
|
|
|
CMD []
|
2023-08-04 17:28:46 +00:00
|
|
|
|
|
|
|
LABEL org.opencontainers.image.title="Todocolors Blue"
|
|
|
|
LABEL org.opencontainers.image.description="Blue(lib) frontend for Todocolors"
|
|
|
|
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
|
|
|
LABEL org.opencontainers.image.url="https://github.com/Steffo99/todocolors"
|
|
|
|
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
|
|
|
|
|
2023-08-19 04:18:13 +00:00
|
|
|
EXPOSE 3000
|