guesstimate/Dockerfile

24 lines
356 B
Docker
Raw Normal View History

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