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