21 lines
375 B
Docker
21 lines
375 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
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
ENTRYPOINT ["lighttpd", "-D"]
|
||
|
CMD ["-f", "/etc/lighttpd/lighttpd.conf"]
|