tsb99x/android-gradle-builder - api-28/agp-3.3/Dockerfile

Builder for Android derived from offical Gradle image

FROM gradle:4.10

ENV ANDROID_HOME="/usr/local/android-sdk"

USER root

RUN mkdir $ANDROID_HOME
RUN chown gradle $ANDROID_HOME

USER gradle

RUN curl -o sdk-tools.zip "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip"
RUN unzip -q sdk-tools.zip -d $ANDROID_HOME
RUN rm sdk-tools.zip

WORKDIR $ANDROID_HOME/tools/bin
RUN yes | ./sdkmanager --licenses
RUN ./sdkmanager --update
RUN ./sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3"
FROM phusion/baseimage:0.10.0
LABEL maintainer="Yevhen Samoilov "
CMD ["/sbin/my_init"]

ENV LC_ALL "en_US.UTF-8"
ENV LANGUAGE "en_US.UTF-8"
ENV LANG "en_US.UTF-8"

ENV ANDROID_SDK_TOOLS_REV "4333796"
ENV ANDROID_BUILD_TOOLS "28.0.3"
ENV ANDROID_COMPILE_SDK "28"
ENV ANDROID_CMAKE_REV "3.6.4111459"

ENV ANDROID_HOME "/sdk"

ENV PATH "$PATH:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools"
ENV DEBIAN_FRONTEND noninteractive

ENV HOME "/root"

RUN apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update
RUN apt-get -y install --no-install-recommends \
curl \
openjdk-8-jdk \
unzip \
zip \
git \
ruby2.4 \
ruby2.4-dev \
build-essential \
file \
ssh

ADD https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS_REV}.zip /tools.zip
RUN unzip /tools.zip -d /sdk && rm -rf /tools.zip

RUN mkdir -p $HOME/.android && touch $HOME/.android/repositories.cfg
RUN ${ANDROID_HOME}/tools/bin/sdkmanager "platform-tools" "tools" "platforms;android-${ANDROID_COMPILE_SDK}" "build-tools;${ANDROID_BUILD_TOOLS}"
RUN ${ANDROID_HOME}/tools/bin/sdkmanager "extras;android;m2repository" "extras;google;google_play_services" "extras;google;m2repository"
RUN yes | ${ANDROID_HOME}/tools/bin/sdkmanager --licenses

RUN yes | sdkmanager 'cmake;'$ANDROID_CMAKE_REV \
&& yes | sdkmanager 'ndk-bundle' 

RUN gem install fastlane

ADD id_rsa $HOME/.ssh/id_rsa
ADD id_rsa.pub $HOME/.ssh/id_rsa.pub
ADD adbkey $HOME/.android/adbkey
ADD adbkey.pub $HOME/.android/adbkey.pub

RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
FROM openjdk:8-jdk-alpine
VOLUME /tmp
COPY gamestore-0.0.1-SNAPSHOT.jar .
CMD ["java", "-jar", "/gamestore-0.0.1-SNAPSHOT.jar"]
BernardJeremy/marvel-react - Dockerfile

React learning project

FROM node:alpine

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install app dependencies
COPY package.json /usr/src/app/
COPY package-lock.json /usr/src/app/
RUN npm install

# Bundle app source
COPY . /usr/src/app

EXPOSE 8080

CMD [ "npm", "run", "serve" ]
FROM nvidia/cuda:10.0-base-ubuntu16.04

# Install some basic utilities
RUN apt-get update && apt-get install -y \
    curl \
    ca-certificates \
    sudo \
    git \
    bzip2 \
    libx11-6 \
    gcc \
    g++ \
 && rm -rf /var/lib/apt/lists/*

# Create a working directory
RUN mkdir /app
WORKDIR /app

# Create a non-root user and switch to it
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
 && chown -R user:user /app
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
#USER user

# All users can use /home/user as their home directory
ENV HOME=/home/user
RUN chmod 777 /home/user

# Install Miniconda
RUN curl -so ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh \
 && chmod +x ~/miniconda.sh \
 && ~/miniconda.sh -b -p ~/miniconda \
 && rm ~/miniconda.sh
ENV PATH=/home/user/miniconda/bin:$PATH
ENV CONDA_AUTO_UPDATE_CONDA=false

# Create a Python 3.6 environment
RUN /home/user/miniconda/bin/conda install conda-build \
 && /home/user/miniconda/bin/conda create -y --name py36 python=3.6.5 \
 && /home/user/miniconda/bin/conda clean -ya
ENV CONDA_DEFAULT_ENV=py36
ENV CONDA_PREFIX=/home/user/miniconda/envs/$CONDA_DEFAULT_ENV
ENV PATH=$CONDA_PREFIX/bin:$PATH

# CUDA 10.0-specific steps
RUN conda install -y -c pytorch \
    cuda100=1.0 \
    magma-cuda100=2.4.0 \
    "pytorch=1.0.0=py3.6_cuda10.0.130_cudnn7.4.1_1" \
    torchvision=0.2.1 \
 && conda clean -ya

# Install HDF5 Python bindings
#RUN conda install -y h5py=2.8.0 \
# && conda clean -ya
#RUN pip install h5py-cache==1.0

# Install Torchnet, a high-level framework for PyTorch
RUN pip install torchnet==0.0.4

# Install Requests, a Python library for making HTTP requests
#RUN conda install -y requests=2.19.1 \
# && conda clean -ya

# Install Graphviz
#RUN conda install -y graphviz=2.38.0 \
# && conda clean -ya
#RUN pip install graphviz==0.8.4

# Install OpenCV3 Python bindings
#RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
#    libgtk2.0-0 \
#    libcanberra-gtk-module \
# && sudo rm -rf /var/lib/apt/lists/*
#RUN conda install -y -c menpo opencv3=3.1.0 \
# && conda clean -ya

RUN pip install numpy
RUN pip install pandas scipy cvxpy cvxopt

# Set the default command to python3
CMD ["python3"]

#WORKDIR /home/user

# RUN git clone https://pvossler@bitbucket.org/msesia/deepknockoffs.git
#RUN git clone https://github.com/patrickvossler18/dk_fork.git
#WORKDIR /home/user/dk_fork/DeepKnockoffs/
#RUN python3 /home/user/dk_fork/DeepKnockoffs/setup.py install --user
#RUN python3 /home/user/dk_fork/DeepKnockoffs/setup.py install --user
FROM openjdk:latest
COPY ./target/seMethods-0.1.0.2-jar-with-dependencies.jar /tmp
WORKDIR /tmp
ENTRYPOINT ["java", "-jar", "seMethods-0.1.0.2-jar-with-dependencies.jar"]
MarcAtHTW/jenkins-with-docker - Dockerfile

Tests to make some changes on jenkins-docker-image

FROM jenkins/jenkins:lts

### Install Maven 3.0.5 - START ###
RUN whoami
USER root
RUN wget --no-verbose -O /tmp/apache-maven-3.0.5.tar.gz \
http://archive.apache.org/dist/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
# stop building if md5sum does not match
RUN echo "94c51f0dd139b4b8549204d0605a5859 /tmp/apache-maven-3.0.5.tar.gz" | \
md5sum -c
# install in /opt/maven
RUN mkdir -p /opt/maven
RUN tar xzf /tmp/apache-maven-3.0.5.tar.gz --strip-components=1 \
-C /opt/maven
RUN ln -s /opt/maven/bin/mvn /usr/local/bin
RUN rm -f /tmp/apache-maven-3.0.5.tar.gz
ENV MAVEN_OPTS -XX:MaxPermSize=450m -Xms600m -Xmx2g
USER jenkins
RUN whoami

### ###
ducmanh86/nodejs-expressjs-typescript-postgresql-scraffold - Dockerfile

nodejs structure with expressjs, typescript, postgresql, tdd

FROM node:lts-alpine

ENV TZ 'Asia/Ho_Chi_Minh'
RUN rm /etc/localtime && \
    ln -snf /usr/share/zoneinfo/$TZ /etc/localtime

# Create working directory
WORKDIR /usr/src/app

# Copy source to image
COPY . .

RUN npm install --only=prod
RUN npm install pm2 -g
RUN pm2 install pm2-logrotate
# package to prettify logs
RUN npm install pino-pretty -g

EXPOSE 3000
whamcloud/Dockerfiles - copr/Dockerfile

Dockerfiles for building and testing IML components.

FROM centos:latest
WORKDIR /build
RUN yum install -y dnf epel-release \
  && yum install -y yum-plugin-copr \
  && dnf install -y 'dnf-command(copr)' \
  && dnf install -y python openssl \
  && dnf copr enable -y @copr/copr \
  && dnf install -y copr-cli \
  && yum clean all \
  && dnf clean all \
  && mkdir /root/.config \
  && touch /root/.config/copr
ADD copr-mfl.enc /tmp
COPY create_build.py /usr/bin/create_build
ENTRYPOINT [ "/usr/bin/create_build" ]
trion-development/docker-ng-cli - Dockerfile

Docker image for Angular CLI

#simple angular-cli docker installation
#docker build -t ng-cli .
#or specify angular-cli version
#docker build --build-arg NG_CLI_VERSION=7.2.3

FROM node:stretch

#alternative to reduce size instead of alpine, but does not
#include build tools for native compilation of npm packages
#FROM node:8-slim

MAINTAINER trion development GmbH "info@trion.de"

ARG NG_CLI_VERSION=7.2.3
ARG USER_HOME_DIR="/tmp"
ARG APP_DIR="/app"
ARG USER_ID=1000

ENV NPM_CONFIG_LOGLEVEL warn
#angular-cli rc0 crashes with .angular-cli.json in user home
ENV HOME "$USER_HOME_DIR"

RUN apt-get update && apt-get install -qqy --no-install-recommends \
    dumb-init \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


# npm 5 uses different userid when installing packages, as workaround su to node when installing
# see https://github.com/npm/npm/issues/16766
RUN set -xe \
    && mkdir -p $USER_HOME_DIR \
    && chown $USER_ID $USER_HOME_DIR \
    && chmod a+rw $USER_HOME_DIR \
    && chown -R node /usr/local/lib /usr/local/include /usr/local/share /usr/local/bin \
    && (cd "$USER_HOME_DIR"; su node -c "npm install -g @angular/cli@$NG_CLI_VERSION; npm install -g yarn; chmod +x /usr/local/bin/yarn; npm cache clean --force")

#not declared to avoid anonymous volume leak
#VOLUME "$USER_HOME_DIR/.cache/yarn"
#VOLUME "$APP_DIR/"
WORKDIR $APP_DIR
EXPOSE 4200

ENTRYPOINT ["/usr/bin/dumb-init", "--"]

USER $USER_ID