2023-10-24 00:01:05 +00:00
|
|
|
FROM node:21 AS builder
|
2023-03-07 22:04:04 +00:00
|
|
|
|
|
|
|
COPY . /src
|
|
|
|
WORKDIR /src
|
|
|
|
RUN npm install && node ./index.js
|
|
|
|
|
2024-05-30 19:01:17 +00:00
|
|
|
FROM caddy:2.8.1
|
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
|