blog/Dockerfile

16 lines
251 B
Docker

# tag it as build
FROM oven/bun AS build
WORKDIR /app
COPY bun.lockb .
COPY package.json .
COPY tsconfig.json .
RUN bun install --frozen-lockfile
COPY ./src ./src
COPY ./posts ./posts
COPY ./config ./config
USER bun
CMD [ "bun", "src/index.tsx" ]