nyc-bookstores/Dockerfile
David f49a1d3bc7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Merge pull request 'Update node Docker tag to v21' (#8) from renovate/node-21.x into master
Reviewed-on: #8
2024-01-22 02:30:01 +00:00

13 lines
274 B
Docker

FROM node:21 AS builder
COPY . /src
WORKDIR /src
RUN npm install && node ./index.js
FROM caddy:2.7.6
COPY img /usr/share/caddy/img
COPY css /usr/share/caddy/css
COPY stores.json robots.txt /usr/share/caddy/
COPY --from=builder /src/index.html /usr/share/caddy/index.html