Information security monitoring analyst:
Igor Tarpan
Do not use root
FROM ubuntu:latest RUN apt-get update --fix-missing && \ apt-get install -y redis-server && \ rm -rf /var/lib/apt/lists/* USER 9000 EXPOSE 6379 CMD redis-server
second method will be soon *
docker run -p 9000:80 python:3.7.2-debian
935 Mb
docker run -p 9000:80 python:3.7.2-debian-slim
196 Mb
docker run -p 9000:80 python:3.7.2-alpine
93 Mb
FROM maven:3.5.2-jdk-9
COPY src /usr/src/app/src
COPY pom.xml /usr/src/app
RUN mvn -f /usr/src/app/pom.xml clean package
EXPOSE 8080
ENTRYPOINT ["java","-jar","/usr/src/app/target/
flighttracker-1.0.0-SNAPSHOT.jar"]
#### Build ####
FROM maven:3.5.2-jdk-9 AS build
COPY src /usr/src/app/src
COPY pom.xml /usr/src/app
RUN mvn -f /usr/src/app/pom.xml clean package
#### Run ####
FROM openjdk:9
COPY --from=build /usr/src/app/target/flighttracker-1.0.0-SNAPSHOT.jar /usr/app/flighttracker-1.0.0-SNAPSHOT.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/usr/app/flighttracker-1.0.0-SNAPSHOT.jar"]
HTTP 1.1 vs HTTP/2
To much info ?