parent
97b9311b77
commit
f9d46bd726
@ -1,13 +1,14 @@ |
|||||||
FROM debian:bullseye-slim as builder |
FROM debian:bullseye-slim as builder |
||||||
WORKDIR /data |
RUN apt update |
||||||
COPY . . |
# WORKDIR /data |
||||||
RUN apt update && apt install -y npm |
# COPY . . |
||||||
RUN npm install -i package.json \ |
# RUN apt install -y npm |
||||||
&& npm run build |
# RUN npm install -i package.json \ |
||||||
|
# && npm run build |
||||||
|
|
||||||
FROM alpine |
# FROM alpine |
||||||
RUN apk update \ |
# RUN apk update \ |
||||||
&& apk add lighttpd \ |
# && apk add lighttpd \ |
||||||
&& rm -rf /var/cache/apk/* |
# && rm -rf /var/cache/apk/* |
||||||
COPY --from=builder /data/dist /var/www/localhost/htdocs |
# COPY --from=builder /data/dist /var/www/localhost/htdocs |
||||||
CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"] |
# CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"] |
Loading…
Reference in new issue