feat: add containerfile

This commit is contained in:
pswsm 2025-01-14 01:50:25 +01:00
pare 985e352cd7
commit 49aa323f77

10
Containerfile Normal file
Veure arxiu

@ -0,0 +1,10 @@
EXPOSE 3000/tcp
FROM node:lts-alpine
ENV PNPM_HOME=/usr/local/bin
WORKDIR /var/www
COPY package.json pnpm-lock.yaml postcss.config.cjs svelte.config.js tailwind.config.cjs tsconfig.json vite.config.ts .
COPY static static
COPY src src
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm run build
# CMD node ./build