Skip to content

Commit 4466a78

Browse files
authored
update Dockerfile.rh: add missing files, set a writable working directory (#23)
1 parent 2958cb4 commit 4466a78

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile.rh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ RUN go build -buildvcs=false -o rhtas_console ./cmd/rhtas_console
1010
# Final stage
1111
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:67fee1a132e8e326434214b3c7ce90b2500b2ad02c9790cc61581feb58d281d5
1212

13-
COPY --from=builder /app/rhtas_console /rhtas_console
13+
# Set a writable working directory
14+
WORKDIR /tmp
15+
ENV HOME=/tmp
16+
17+
COPY --from=builder /app/rhtas_console /tmp/rhtas_console
18+
COPY internal/db/migrations /tmp/internal/db/migrations
1419

1520
LABEL description="rhtas_console is the backend API server for the Red Hat Trusted Application Signer dashboard."
1621
LABEL io.k8s.description="Backend API for the Red Hat Trusted Application Signer Console."
@@ -28,4 +33,4 @@ USER 65532:65532
2833
EXPOSE 8080
2934

3035
#ENTRYPOINT
31-
ENTRYPOINT ["/rhtas_console"]
36+
ENTRYPOINT ["/tmp/rhtas_console"]

0 commit comments

Comments
 (0)