Skip to content

Instantly share code, notes, and snippets.

@3onyc
Last active August 29, 2015 13:56
Show Gist options
  • Save 3onyc/9218692 to your computer and use it in GitHub Desktop.
Save 3onyc/9218692 to your computer and use it in GitHub Desktop.
FROM stackbrew/ubuntu:13.10
RUN mkdir /opt/example && \
touch /opt/example/.keep && \
chown -R www-data:www-data /opt/example && \
chmod -R ug+rwX,o-rwx /opt/example && \
ls -alh /opt
VOLUME /opt/example
root@31e2f45bc313:/# ls -alh /opt/example
total 8.0K
drwxrwx--- 2 www-data www-data 4.0K Mar 3 15:08 .
drwxr-xr-x 3 root root 4.0K Mar 3 15:08 ..
-rw-rw---- 1 www-data www-data 0 Mar 3 15:08 .keep
# docker build -t example .
Uploading context 2.56 kB
Uploading context
Step 0 : FROM stackbrew/ubuntu:13.10
---> 24ba2ee5d982
Step 1 : RUN mkdir /opt/example && touch /opt/example/.keep && chown -R www-data:www-data /opt/example && chmod -R ug+rwX,o-rwx /opt/example && ls -alh /opt
---> Running in 14ced4d42a5a
total 12K
drwxr-xr-x 3 root root 4.0K Mar 3 15:08 .
drwxr-xr-x 21 root root 4.0K Mar 3 15:08 ..
drwxrwx--- 2 www-data www-data 4.0K Mar 3 15:08 example
---> ca540e7f45ca
Step 2 : VOLUME /opt/example
---> Running in b686b1a24558
---> 7b7b5832549b
Successfully built 7b7b5832549b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment