Skip to content

Instantly share code, notes, and snippets.

@claudiug
Created June 3, 2016 18:31
Show Gist options
  • Save claudiug/0ef8c6be17656cbb1accdd0cfadbd73d to your computer and use it in GitHub Desktop.
Save claudiug/0ef8c6be17656cbb1accdd0cfadbd73d to your computer and use it in GitHub Desktop.
dockerfile
ROM 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 ["./ecratum-api"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment