blog/Dockerfile

17 lines
240 B
Docker

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