2020-04-20 12:24:17 +02:00
|
|
|
FROM alpine:3.11 AS build
|
|
|
|
|
2020-04-22 22:07:52 +02:00
|
|
|
RUN apk add --no-cache nodejs npm git make
|
|
|
|
|
2020-04-20 12:24:17 +02:00
|
|
|
COPY . /src
|
|
|
|
WORKDIR /src
|
|
|
|
|
2020-04-22 22:07:52 +02:00
|
|
|
RUN npm install && make build
|
2020-04-20 12:24:17 +02:00
|
|
|
|
|
|
|
FROM alpine:3.11
|
|
|
|
|
2020-04-22 22:07:52 +02:00
|
|
|
COPY --from=build /src/dist /app
|
2020-04-20 12:24:17 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apk add --no-cache caddy
|
|
|
|
|
|
|
|
COPY misc/dokku/Caddyfile /app/Caddyfile
|
|
|
|
COPY misc/dokku/CHECKS /app/CHECKS
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD ["caddy"]
|