2019-09-25 00:08:27 +02:00
|
|
|
FROM node:10-buster-slim AS build
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
ADD . /build
|
|
|
|
|
|
|
|
RUN apt update && apt install --yes git binutils
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk add --update --no-cache lighttpd
|
|
|
|
|
|
|
|
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
|
2019-11-02 05:47:04 +01:00
|
|
|
COPY --from=build /build/dist /app/sengi
|
|
|
|
COPY --from=build /build/assets/docker_init /app
|
2019-09-25 00:08:27 +02:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["lighttpd", "-D"]
|
|
|
|
CMD ["-f", "/etc/lighttpd/lighttpd.conf"]
|