Answers for "docker file"

2

docker ARG

$ docker build --build-arg some_variable_name=a_value
Posted by: Guest on October-05-2020
1

dockerfile example

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

dockerfile env variabes

FROM busybox
ENV foo /bar
WORKDIR ${foo}   # WORKDIR /bar
ADD . $foo       # ADD . /bar
COPY \$foo /quux # COPY $foo /quux
Posted by: Guest on April-20-2020
0

docker file

# getting base image from ubuntu
FROM ubuntu:18.04

RUN apt-get update

CMD ["echo", "HEY from docker image"]
Posted by: Guest on November-30-2020
1

how to create docker image from custom filename

cat DockerFile.debian.foo | docker build -t debian.foo -
Posted by: Guest on September-06-2020

Browse Popular Code Answers by Language