You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Build
FROM golang:1.21-alpine AS build-env
RUN apk add build-base
WORKDIR /app
COPY . /app
WORKDIR /app # duplicated app WORKDIR here
RUN go mod download
RUN go build ./cmd/nuclei
# Release
FROM alpine:3.18.6
RUN apk upgrade --no-cache \
&& apk add --no-cache bind-tools chromium ca-certificates
COPY --from=build-env /app/nuclei /usr/local/bin/
ENTRYPOINT ["nuclei"]
Expected Behavior
# Build
FROM golang:1.21-alpine AS build-env
RUN apk add build-base
WORKDIR /app
COPY . /app
RUN go mod download
RUN go build ./cmd/nuclei
# Release
FROM alpine:3.18.6
RUN apk upgrade --no-cache \
&& apk add --no-cache bind-tools chromium ca-certificates
COPY --from=build-env /app/nuclei /usr/local/bin/
ENTRYPOINT ["nuclei"]
Steps To Reproduce
Build the docker image locally
docker build -t nuclei .
Logs will showcase the duplicate work directory
Relevant log output
=> CACHED [build-env 2/7] RUN apk add build-base 0.0s
=> CACHED [build-env 3/7] WORKDIR /app 0.0s
=> CACHED [build-env 4/7] COPY . /app 0.0s
=> CACHED [build-env 5/7] WORKDIR /app 0.0s
=> CACHED [build-env 6/7] RUN go mod download 0.0s
=> CACHED [build-env 7/7] RUN go build ./cmd/nuclei
Environment
OS: Ubuntu 24.04.1 LTS
The text was updated successfully, but these errors were encountered:
ajutamangdev
added
the
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
label
Sep 15, 2024
Is there an existing issue for this?
Current Behavior
Expected Behavior
Steps To Reproduce
docker build -t nuclei .
Relevant log output
Environment
The text was updated successfully, but these errors were encountered: