Last active
August 29, 2015 14:26
-
-
Save n5i/c546b691994f3ce00c4c to your computer and use it in GitHub Desktop.
Dockerfile: syslog and codenvy problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM codenvy/go | |
ENV GOPATH /home/user/application | |
RUN mkdir -p /home/user/application/src | |
ENV CODENVY_APP_BIND_DIR /home/user/application/src | |
VOLUME ["/home/user/application/src", "/dev", "/var/log"] | |
WORKDIR /home/user/application/src | |
# syslog | |
RUN sudo apt-get update -q | |
RUN sudo apt-get install -y rsyslog | |
CMD rsyslogd -n | |
# 1. Get dependencies from source code of application | |
# 2. Start application | |
CMD go get -d && go run $executable:-main.go$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment