Some checks failed
Build and Deploy Gabriel Kaszewski Portfolio / build-and-deploy-local (push) Failing after 7s
~800MiB -> ~5MiB RAM
15 lines
280 B
Docker
15 lines
280 B
Docker
FROM oven/bun:1 AS build
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --frozen-lockfile
|
|
|
|
COPY . .
|
|
ENV NODE_ENV=production
|
|
RUN bun run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/out /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|