2023-04-21 00:00:42 +00:00
|
|
|
FROM node:20-slim AS builder
|
2023-03-07 22:04:04 +00:00
|
|
|
|
|
|
|
COPY . /src
|
|
|
|
WORKDIR /src
|
|
|
|
RUN npm install && node ./index.js
|
|
|
|
|
2023-08-18 17:01:02 +00:00
|
|
|
FROM caddy:2.7.4
|
2023-03-07 22:04:04 +00:00
|
|
|
|
|
|
|
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
|