Own docker image. #53
-
I would like to create my own docker image. Which files do I need to edit to make it point to my repository? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
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:
And then build the image with:
The tag, specified with the
|
Beta Was this translation helpful? Give feedback.
-
I create my own docker image , but when i try to deploy on my server terminal show me: |
Beta Was this translation helpful? Give feedback.
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:
You can build Glance with:
And then build the image with:
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: