14 lines
307 B
Docker
14 lines
307 B
Docker
|
FROM node:18-slim AS builder
|
||
|
|
||
|
COPY . /src
|
||
|
WORKDIR /src
|
||
|
RUN npm install && node ./index.js
|
||
|
|
||
|
FROM caddy:2.6.4
|
||
|
|
||
|
COPY img /usr/share/caddy/img
|
||
|
COPY css /usr/share/caddy/css
|
||
|
COPY js /usr/share/caddy/js
|
||
|
COPY stores.json robots.txt /usr/share/caddy/
|
||
|
COPY --from=builder /src/index.html /usr/share/caddy/index.html
|