nyc-bookstores/Dockerfile

13 lines
274 B
Docker
Raw Normal View History

2024-04-26 18:01:07 +00:00
FROM node:22 AS builder
COPY . /src
WORKDIR /src
RUN npm install && node ./index.js
2024-06-03 19:01:14 +00:00
FROM caddy:2.8.4
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