diff options
author | Yulqen <246857+yulqen@users.noreply.github.com> | 2024-04-22 14:32:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 14:32:43 +0100 |
commit | e546c7103da64e1b4cbda9c400926370f66b8c22 (patch) | |
tree | 58e9e646950efdf934eb287616dfe911a0237dd7 /Dockerfile | |
parent | a2630afd4ea8ddf09a95e50c1ce979fc61c7af8b (diff) | |
parent | 979680b2b8fcb0acdf7b9c776bf6e857259c3309 (diff) |
Merge pull request #18 from defencedigital/change-dockerfile
Changed to 1.20 and using RHEL9 Go image
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,12 +1,11 @@ -FROM docker.io/golang:alpine +FROM registry.redhat.io/rhel9/go-toolset:1.20.12-3.1712567214 WORKDIR /app -RUN apk add --update npm RUN npm i sass govuk-frontend --save COPY go.mod ./ RUN go mod download && go mod verify COPY . . -RUN go build -v -o /usr/local/bin/app ./cmd/web -CMD ["app"] +RUN go build -v -o /app/bin/app ./cmd/web +CMD ["./bin/app"] EXPOSE 4000 |