22 lines
323 B
Docker
22 lines
323 B
Docker
|
FROM alpine:3.11 AS build
|
||
|
|
||
|
COPY . /src
|
||
|
WORKDIR /src
|
||
|
|
||
|
RUN apk add --no-cache nodejs npm git
|
||
|
RUN npm install && npm run build
|
||
|
|
||
|
FROM alpine:3.11
|
||
|
|
||
|
COPY --from=build /src/build /app
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN apk add --no-cache caddy
|
||
|
|
||
|
COPY misc/dokku/Caddyfile /app/Caddyfile
|
||
|
COPY misc/dokku/CHECKS /app/CHECKS
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
CMD ["caddy"]
|