1
0
mirror of https://github.com/NicolasConstant/sengi synced 2024-12-23 15:08:34 +01:00
Sengi-Windows-MacOS-Linux/Dockerfile
2020-09-02 00:58:19 -04:00

22 lines
430 B
Docker

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
COPY --from=build /build/dist /app
COPY --from=build /build/assets/docker_init /app/start
EXPOSE 80
ENTRYPOINT ["lighttpd", "-D"]
CMD ["-f", "/etc/lighttpd/lighttpd.conf"]