blog/Dockerfile

19 lines
291 B
Docker
Raw Normal View History

# tag it as build
FROM oven/bun AS build
WORKDIR /app
2024-07-04 02:24:36 +00:00
COPY bun.lockb .
COPY package.json .
2024-07-04 02:24:36 +00:00
RUN bun install --frozen-lockfile
RUN mkdir src posts
COPY ./src ./src
COPY ./posts ./posts
USER bun
EXPOSE 3000
CMD [ "bun", "run", "src/index.ts" ]
# CMD [ "ls", "-la", "src" ]
# CMD [ "pwd" ]