23 lines
325 B
Docker
23 lines
325 B
Docker
FROM alpine:3.11 AS build
|
|
|
|
RUN apk add --no-cache nodejs npm git make
|
|
|
|
COPY . /src
|
|
WORKDIR /src
|
|
|
|
RUN npm install && make build
|
|
|
|
FROM alpine:3.11
|
|
|
|
COPY --from=build /src/dist /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"] |