Go Docker Images: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://docs.docker.com/language/golang/build-images/ =Internal= * Go Engineering =TODO= <font color=darkkhaki>TODO</font>")
 
 
Line 3: Line 3:
=Internal=
=Internal=
* [[Go_Engineering#Go_Docker_Images|Go Engineering]]
* [[Go_Engineering#Go_Docker_Images|Go Engineering]]
=Example=
<syntaxhighlight lang='docker'>
FROM docker.com/ubi9/ubi:latest
RUN mkdir -p /app
COPY ./build/some-app /app
COPY scripts/some-app.sh /app
RUN chmod +x /app/some-app.sh; chmod +x /app/some-app
WORKDIR /app
ENTRYPOINT ./some-app.sh
EXPOSE 33333
</syntaxhighlight>
=TODO=
=TODO=
<font color=darkkhaki>TODO</font>
<font color=darkkhaki>TODO</font>

Latest revision as of 22:28, 1 April 2024

External

Internal

Example

FROM docker.com/ubi9/ubi:latest
RUN mkdir -p /app
COPY ./build/some-app /app
COPY scripts/some-app.sh /app
RUN chmod +x /app/some-app.sh; chmod +x /app/some-app
WORKDIR /app
ENTRYPOINT ./some-app.sh
EXPOSE 33333

TODO

TODO