add docker images and deployment to project
Some checks failed
Deployment / Deploy App (push) Failing after 1m27s
Deployment / Deploy Storybook (push) Failing after 4m21s

This commit is contained in:
Benjamin Palko 2025-03-31 14:26:05 -04:00
parent 8f96736328
commit a455a71150
7 changed files with 107 additions and 53 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM oven/bun:1.2-alpine AS build
WORKDIR /opt/build
COPY . .
RUN bun install --frozen-lockfile \
&& bun run build
FROM node:18-alpine3.21
WORKDIR /opt/app
COPY ./package.json ./package.json
COPY --from=build --chown=1000:1000 /opt/build/node_modules/ /opt/app/node_modules/
COPY --from=build --chown=1000:1000 /opt/build/build /opt/app
ENTRYPOINT [ "node", "index.js" ]