Dockerfile fix

This commit is contained in:
aceberg 2023-01-07 04:00:24 +07:00
parent dd863fbf2c
commit c695b86199

View file

@ -3,7 +3,8 @@ FROM golang:bullseye AS builder
COPY . /src
RUN apt update && apt install -y npm
RUN cd / && npm i bootswatch && npm i bootstrap-icons
RUN cd / && npm i bootswatch > /dev/null 2>&1 \
&& npm i bootstrap-icons > /dev/null 2>&1
RUN cd /src/cmd/WatchYourLAN/ && CGO_ENABLED=0 go build -o /WatchYourLAN .