dockerfile example

Solutions on MaxInterview for dockerfile example by the best coders in the world

showing results for - "dockerfile example"
Leonardo
01 Jul 2020
1FROM ubuntu:18.04
2COPY . /app
3RUN make /app
4CMD python /app/app.py
5
Hannes
12 Jan 2020
1# Use the official image as a parent image.
2FROM node:current-slim
3
4# Set the working directory.
5WORKDIR /usr/src/app
6
7# Copy the file from your host to your current location.
8COPY package.json .
9
10# Run the command inside your image filesystem.
11RUN npm install
12
13# Inform Docker that the container is listening on the specified port at runtime.
14EXPOSE 8080
15
16# Run the specified command within the container.
17CMD [ "npm", "start" ]
18
19# Copy the rest of your app's source code from your host to your image filesystem.
20COPY . .
21
Valentino
23 Apr 2018
1RUN apt-get install python3
2CMD echo "Hello world"
3ENTRYPOINT echo "Hello world"
4
similar questions
queries leading to this page
dockerfile example