Skip to content

Instantly share code, notes, and snippets.

@axelvf
Created October 21, 2021 16:43
Show Gist options
  • Save axelvf/e9a44f9f22ba89a49c3ccb08e7f5664e to your computer and use it in GitHub Desktop.
Save axelvf/e9a44f9f22ba89a49c3ccb08e7f5664e to your computer and use it in GitHub Desktop.
Dockerfile for turbotuber project by CyberShadow
# Download base image ubuntu 20.04
FROM ubuntu:20.04
RUN mkdir -p /app
WORKDIR /app
# Update Ubuntu Software repository
RUN apt update
# For apt to be noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
# Preesed tzdata, update package index, upgrade packages and install needed software
RUN truncate -s0 /tmp/preseed.cfg; \
echo "tzdata tzdata/Areas select Europe" >> /tmp/preseed.cfg; \
echo "tzdata tzdata/Zones/Europe select Berlin" >> /tmp/preseed.cfg; \
debconf-set-selections /tmp/preseed.cfg && \
rm -f /etc/timezone /etc/localtime && \
apt-get update && \
apt-get install -y tzdata
# Install wget before install D compiler
RUN apt-get install -y wget
# Download and install D compiler
RUN wget https://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list \
&& apt-get update --allow-insecure-repositories \
&& apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring \
&& apt-get update && apt-get install -y dmd-compiler dub
# Install Git and clone project
RUN apt-get install -y git \
&& git clone https://github.com/CyberShadow/turbotuber.git
# Install required dependences
RUN apt-get install -y libxmu-dev libxmu-headers freeglut3-dev libxext-dev libxi-dev libssl-dev libz-dev
RUN cd turbotuber && dub build -b release -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment