Yesterday I've been asked about how to make a docker images with dockerfile
This time I want to add a question
If I want to make the OS ubuntu 14:04 on images docker, which it is installed, postgresql-9.3.10, install Java JDK 6, copy the file (significant location), and create a user on the images.
Whether I can combine of several dockerfile as needed for images? (dockerfile of postgresql, java, copyfile, and create a user so one dockerfile)
Example. I made one dockerfile "ubuntu" which contains the command
top line
# Create dockerfile # get OS ubuntu to images FROM ubuntu: 14:04 # !!further adding a command on the following link, below the line per-dockerfile(intends command in dockerfile on the link) # command on dockerfile postgresql-9.3 https://github.com/docker-library/postgres/blob/ed23320582f4ec5b0e5e35c99d98966dacbc6ed8/9.3/Dockerfile # command on dockerfile java https://github.com/docker-library/java/blob/master/openjdk-6-jdk/Dockerfile # create a user on images ubuntu RUN adduser myuser # copy file/directory on images ubuntu COPY /home/myuser/test /home/userimagedockerubuntu/test # ? CMD ["ubuntu:14.04"] Please help me