mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-26 06:05:34 +01:00
04f6ee9e44
* feat(node): updated to 20.10.0 * chore(deps): Updated * chore(deps): Updated * fix(lint): fixed * chore(deps): Updated * fix(stylelint): upgraded to 16 and removed stylelint-config-prettier * fix(package): add resolutions for packages that don't support ESM
20 lines
627 B
Docker
20 lines
627 B
Docker
FROM node:20.10.0-alpine AS node-build
|
|
WORKDIR /usr/src/app
|
|
COPY package.json ./
|
|
COPY yarn.lock ./
|
|
COPY src ./src
|
|
COPY public ./public
|
|
RUN yarn install --frozen-lockfile --check-files --network-timeout 600000
|
|
RUN yarn build --noninteractive
|
|
RUN yarn install --frozen-lockfile --check-files --production --modules-folder node_modules_prod --network-timeout 600000
|
|
|
|
FROM node:20.10.0-alpine
|
|
WORKDIR /usr/src/app
|
|
ENV NODE_ENV production
|
|
RUN mkdir -p /node_modules
|
|
COPY --from=node-build /usr/src/app/build ./build
|
|
COPY --from=node-build /usr/src/app/node_modules_prod ./node_modules
|
|
EXPOSE 3000
|
|
CMD [ "node", "build/server.js" ]
|
|
|