create Docker image without install the os

1 post / 0 new
Offline
Last seen: 5 years 2 months ago
Joined: 09/16/2019
Posts: 1
create Docker image without install the os

i want to create the docker image of dds application. in docker image do not want to install the any OS. how i create it please help me.i put the contant of dockfile as bellow

  It is working fine  when i use "FROM ubuntu:16.04"  but if i use "FROM scratch" instead of  "FROM ubuntu:16.04"  then it give the error 

that standard_init_linux.go:211: exec user process caused "no such file or directory" failed to resize tty, using default size

FROM ubuntu:16.04 

# Store the test apps in /app
WORKDIR /app
# Copy the apps and QoS file
COPY USER_QOS_PROFILES.xml \
objs/x64Linux4gcc7.3.0/Values_publisher \
objs/x64Linux4gcc7.3.0/Values_subscriber \
rti_license.dat \
./

# Add the apps to the PATH
ENV PATH $PATH:/app

 

Organization: