This repository has been archived on 2025-09-29. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
docker-examples/fractal/Dockerfile

20 lines
360 B
Docker

FROM node:20-bullseye-slim AS base
WORKDIR /app
RUN mkdir /node_modules \
&& chown node:node -R /app /node_modules
COPY --chown=node:node package*.json *yarn* /app
USER node
################################################################################
FROM base AS build
RUN yarn install --frozen-lockfile
COPY --chown=node:node . .
CMD ["bash"]