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-27 22:43:42 +02:00
|
|
|
RUN make install-deps \
|
|
|
|
&& make build
|
2020-04-20 12:24:17 +02:00
|
|
|
|
|
|
|
FROM alpine:3.11
|
|
|
|
|
2020-04-27 22:43:42 +02:00
|
|
|
COPY --from=build /src/client/dist /client
|
2020-04-20 12:24:17 +02:00
|
|
|
|
2020-04-27 22:43:42 +02:00
|
|
|
WORKDIR /client
|
2020-04-20 12:24:17 +02:00
|
|
|
|
|
|
|
RUN apk add --no-cache caddy
|
|
|
|
|
2020-04-27 22:43:42 +02:00
|
|
|
COPY misc/dokku/Caddyfile /client/Caddyfile
|
|
|
|
COPY misc/dokku/CHECKS /client/CHECKS
|
2020-04-20 12:24:17 +02:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD ["caddy"]
|