guesstimate/Dockerfile

22 lines
323 B
Docker
Raw Normal View History

2020-04-20 12:24:17 +02:00
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"]