Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • specify the starting docker image
  • copy files into the image
  • run commands in the image
  • specify the internal ports that will be used by the image
  • define the entrypoint (what gets executed at image startup)



Dockerfile


Code Block
titleDockerfile
FROM jamesdbloom/mockserver

...


LABEL placodermi.component=mockserver

...


 
WORKDIR /opt/mockserver

...


 
# Artifacts
COPY entrypoint.sh /opt/mockserver/entrypoint.sh

...


COPY MockInitializer.java /opt/mockserver/MockInitializer.java

...


 
RUN chmod +x /opt/mockserver/entrypoint.sh

...


 
EXPOSE 1080
EXPOSE 1090
 
ENTRYPOINT ["/opt/mockserver/entrypoint.sh"]


Build the Image

Run the Dockerfile by issuing the following command

...