nyc-bookstores/Dockerfile

13 lines
274 B
Docker
Raw Permalink Normal View History

2023-10-12 01:37:28 +00:00
FROM node:20 AS builder
COPY . /src
WORKDIR /src
RUN npm install && node ./index.js
2023-10-17 17:01:06 +00:00
FROM caddy:2.7.5
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