Skip to content

Own docker image. #53

Closed Answered by svilenmarkov
er2de2 asked this question in Q&A
May 10, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Hey,

I'm assuming you're only interested in building the image for a single platform and architecture, in which case it should be just about editing the Dockerfile to:

FROM alpine:3.19

WORKDIR /app
COPY build/glance /app/glance

EXPOSE 8080/tcp
ENTRYPOINT ["/app/glance"]

You can build Glance with:

go build -o build/glance .

And then build the image with:

docker build -t er2de2/glance:latest .

The tag, specified with the -t option is what determines the name of your image. You can then push that image to your repository with:

docker push er2de2/glance:latest

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@er2de2
Comment options

Answer selected by er2de2
Comment options

You must be logged in to vote
4 replies
@svilenmarkov
Comment options

@er2de2
Comment options

@svilenmarkov
Comment options

@er2de2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants