Answers for "Simple Dockerfile"

1

dockerfile example

FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
Posted by: Guest on August-14-2020
2

docker create

docker create [options] IMAGE
  -a, --attach               # attach stdout/err
  -i, --interactive          # attach stdin (interactive)
  -t, --tty                  # pseudo-tty
      --name NAME            # name your image
  -p, --publish 5000:5000    # port map
      --expose 5432          # expose a port to linked containers
  -P, --publish-all          # publish all ports
      --link container:alias # linking
  -v, --volume `pwd`:/app    # mount (absolute paths needed)
  -e, --env NAME=hello       # env vars
Posted by: Guest on May-31-2020
0

Simple Dockerfile

FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]Copy
Posted by: Guest on June-09-2021
0

Simple Dockerfile

docker build -t springio/gs-spring-boot-docker .Copy
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language