summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-22 14:32:43 +0100
committerGitHub <noreply@github.com>2024-04-22 14:32:43 +0100
commite546c7103da64e1b4cbda9c400926370f66b8c22 (patch)
tree58e9e646950efdf934eb287616dfe911a0237dd7 /Dockerfile
parenta2630afd4ea8ddf09a95e50c1ce979fc61c7af8b (diff)
parent979680b2b8fcb0acdf7b9c776bf6e857259c3309 (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--Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 3c01103..0b159f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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