Build notatio binary with updated file path
The Dockerfile is updated to build the notatio binary with the new file path "/home/notatio/notatio" instead of "/notatio". The final image is also updated to copy the necessary files to the new file path "/home/notatio". The entrypoint is modified to change the working directory before executing the notatio binary.
This commit is contained in:
parent
7da4f9830f
commit
ccdd52afa4
1 changed files with 7 additions and 7 deletions
14
Dockerfile
14
Dockerfile
|
@ -11,7 +11,7 @@ COPY static/ static/
|
|||
COPY wait-for-postgres.sh ./
|
||||
|
||||
COPY . ./
|
||||
RUN go build -o /notatio
|
||||
RUN go build -o /home/notatio/notatio
|
||||
|
||||
# Stage 2: Create the final image
|
||||
FROM docker.io/library/alpine:3.18.4
|
||||
|
@ -20,15 +20,15 @@ RUN adduser -D -g '' notatio
|
|||
USER notatio
|
||||
WORKDIR /
|
||||
|
||||
COPY --from=builder /notatio .
|
||||
COPY --from=builder /notatio /home/notatio/notatio
|
||||
|
||||
COPY --from=builder /build/templates/ templates/
|
||||
COPY --from=builder /build/editor_templates/ editor_templates/
|
||||
COPY --from=builder /build/static/ static/
|
||||
COPY --from=builder /build/wait-for-postgres.sh ./wait-for-postgres.sh
|
||||
COPY --from=builder /build/templates/ /home/notatio/templates/
|
||||
COPY --from=builder /build/editor_templates/ /home/notatio/editor_templates/
|
||||
COPY --from=builder /build/static/ /home/notatio/static/
|
||||
COPY --from=builder /build/wait-for-postgres.sh /home/notatio/wait-for-postgres.sh
|
||||
|
||||
EXPOSE 9991
|
||||
ENTRYPOINT ["sh", "-c", "sleep 10 && ./notatio"]
|
||||
ENTRYPOINT ["sh", "-c", "sleep 10 && cd && ./notatio"]
|
||||
LABEL name=notatio version=latest
|
||||
|
||||
HEALTHCHECK --interval=5m --timeout=3s \
|
||||
|
|
Loading…
Reference in a new issue