Skip to content

Instantly share code, notes, and snippets.

@llaine
Created June 3, 2016 14:27
Show Gist options
  • Select an option

  • Save llaine/6089e4eb56d42da4873d4ae9ce9f0fd9 to your computer and use it in GitHub Desktop.

Select an option

Save llaine/6089e4eb56d42da4873d4ae9ce9f0fd9 to your computer and use it in GitHub Desktop.
dockerfile
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