Created
June 3, 2016 14:27
-
-
Save llaine/6089e4eb56d42da4873d4ae9ce9f0fd9 to your computer and use it in GitHub Desktop.
dockerfile
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 ubuntu:14.04 | |
| RUN apt-get update && apt-get install -y wget | |
| RUN wget http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list | |
| RUN apt-get update && apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring && apt-get update \ | |
| && apt-get install -y dmd-bin dub libcurl3-gnutls libevent-dev libcrypto++-dev libssl-dev | |
| # Where the app live inside the container | |
| ENV APP_ROOT /var/www/dlang-api-ecratum | |
| EXPOSE 8080 | |
| # Setup the workdir inside the container, so that every action | |
| # will be done inside this | |
| WORKDIR $APP_ROOT | |
| # Copy everything into the container | |
| COPY . . | |
| # Building the app | |
| RUN dub build --config=application --build=release | |
| # Running the app. | |
| CMD ["./binary"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment