FROM ubuntu:12.04

MAINTAINER Kimbro Staken version: 0.1

RUN apt-get update && apt-get install -y apache2 && apt-get clean && rm -rf /var/lib/apt/lists/*

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2

EXPOSE 80

CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]
thirunjuguna/natra - lib/natra/generators/app/templates/Dockerfile

Natra generate a light weight sinatra application.It's ideal for building containerized api services

FROM ruby:2.5.3 AS base

WORKDIR /usr/src/app

RUN gem install bundler

COPY Gemfile /usr/src/app/

FROM base AS development

RUN bundle install -j5 --without staging production

COPY . /usr/src/app

FROM base AS release

RUN bundle install -j5 --without development test

RUN chmod 755 ./usr/src/app

RUN chmod 755 ./usr/src/app/bin/setup

COPY . /usr/src/app

CMD puma
claclacla/Recipe-for-a-CQRS-ES-baked-with-Ruby-on-rails-Socket.io-and-Docker - docker/dev/api-server/Dockerfile

A CQRS + Event storming backend solution with a microservice flavour

FROM ruby:2.5.3

COPY microservices/api-server/Gemfile /tmp
COPY microservices/api-server/Gemfile.lock /tmp
WORKDIR /tmp
RUN bundle install

WORKDIR /usr/src/app/microservices/api-server

CMD rake db:seed \
  && rails s
olegshs/telegram-proxy - Dockerfile

Dockerfile for TelegramMessenger/MTProxy

FROM debian AS build
RUN apt-get update \
 && apt-get install -y git gcc make libssl-dev zlib1g-dev
WORKDIR /opt/MTProxy
RUN git clone https://github.com/TelegramMessenger/MTProxy .
RUN make

FROM debian
RUN apt-get update \
 && apt-get install -y curl
ADD https://core.telegram.org/getProxySecret /etc/telegram/proxy-secret
COPY --from=build /opt/MTProxy/objs/bin/mtproto-proxy /usr/local/bin/
COPY run.sh /
RUN chmod a+x /run.sh
ENTRYPOINT ["/run.sh"]
StefH/QboxNext - src-server/QboxNext.Server.WebApi/Dockerfile

QboxNext is a modified clone of Qplatform, based on https://bitbucket.org/qboxnext/dotnetcore-minimal

FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY ["dependencies/dotnetcore-minimal/QboxNext.Qboxes.Parsing/QboxNext.Qboxes.Parsing.csproj", "dependencies/dotnetcore-minimal/QboxNext.Qboxes.Parsing/"]
COPY ["dependencies/dotnetcore-minimal/QboxNext.Logging/QboxNext.Logging.csproj", "dependencies/dotnetcore-minimal/QboxNext.Logging/"]
COPY ["dependencies/dotnetcore-minimal/QboxNext.Qserver.Core/QboxNext.Qserver.Core.csproj", "dependencies/dotnetcore-minimal/QboxNext.Qserver.Core/"]
COPY ["dependencies/dotnetcore-minimal/QboxNext.Core/QboxNext.Core.csproj", "dependencies/dotnetcore-minimal/QboxNext.Core/"]
COPY ["dependencies/dotnetcore-minimal/QboxNext.Model/QboxNext.Model.csproj", "dependencies/dotnetcore-minimal/QboxNext.Model/"]

COPY ["dependencies/NLog.Extensions.AzureStorage/src/NLog.Extensions.AzureTables/NLog.Extensions.AzureTables.csproj", "dependencies/NLog.Extensions.AzureStorage/src/NLog.Extensions.AzureTables/"]

COPY ["src/QboxNext/QboxNext.csproj", "src/QboxNext/"]

COPY ["src/QboxNext.Extensions/QboxNext.Extensions.csproj", "src/QboxNext.Extensions/"]

COPY ["src-server/QboxNext.Server.Infrastructure.Azure/QboxNext.Server.Infrastructure.Azure.csproj", "src-server/QboxNext.Server.Infrastructure.Azure/"]
COPY ["src-server/QboxNext.Server.WebApi/QboxNext.Server.WebApi.csproj", "src-server/QboxNext.Server.WebApi/"]
COPY ["src-server/QBoxNext.Server.Business/QBoxNext.Server.Business.csproj", "src-server/QBoxNext.Server.Business/"]
COPY ["src-server/QboxNext.Server.Domain/QboxNext.Server.Domain.csproj", "src-server/QboxNext.Server.Domain/"]
COPY ["src-server/QboxNext.Server.Common/QboxNext.Server.Common.csproj", "src-server/QboxNext.Server.Common/"]

RUN dotnet restore "src-server/QboxNext.Server.WebApi/QboxNext.Server.WebApi.csproj"
COPY . .
WORKDIR "/src/src-server/QboxNext.Server.WebApi"
RUN dotnet build "QboxNext.Server.WebApi.csproj" -c Release -o /app

FROM build AS publish
RUN dotnet publish "QboxNext.Server.WebApi.csproj" -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "QboxNext.Server.WebApi.dll"]
FROM zshusers/zsh-5.6.2

# install oh-my-zsh
RUN apt-get update && \
  apt-get install -y git ruby curl vim && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | zsh || true

# overwrite oh-my-zsh configs
COPY misc/zshrc /root/.zshrc

# install necessary plugins
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
  git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

WORKDIR /root
FROM golang:latest

ADD main.go /go/main.go

RUN sed 's/CLOUD_PROVIDER/Heroku/' /go/main.go > /go/heroku.go

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' /go/heroku.go

CMD [ "/go/heroku" ]

# http server listens on port 80.
EXPOSE 80
timmo001/home-panel - docker/Dockerfile

A touch-compatible web frontend for controlling the home.

ARG BUILD_FROM=alpine:3.8
# hadolint ignore=DL3006
FROM ${BUILD_FROM}

# Environment variables
ENV \
    HOME="/root" \
    LANG="C.UTF-8" \
    PS1="$(whoami)@$(hostname):$(pwd)$ " \
    S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
    S6_CMD_WAIT_FOR_SERVICES=1 \
    TERM="xterm" \
    SSL="false" \
    SSL_CERTFILE="/data/ssl/fullchain.pem" \
    SSL_KEYFILE="/data/ssl/privkey.pem"

# Copy app
COPY build /opt/panel

# Copy root filesystem
COPY rootfs /

# Build arch argument
ARG BUILD_ARCH=amd64

# Set shell
SHELL ["/bin/ash", "-o", "pipefail", "-c"]

# Install system
# hadolint ignore=DL3003
RUN \
    set -o pipefail \
    \
    && echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
    && echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
    && echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
    \
    && apk add --no-cache --virtual .build-dependencies \
        curl=7.61.1-r1 \
        git=2.18.1-r0 \
        tar=1.31-r0 \
        yarn=1.7.0-r0 \
    \
    && apk add --no-cache \
        apk-tools=2.10.1-r0 \
        bash=4.4.19-r1 \
        busybox=1.28.4-r3 \
        ca-certificates=20171114-r3 \
        nginx=1.14.2-r0 \
        nodejs-current=9.11.1-r2 \
        tzdata=2018f-r0 \
    \
    && if [ "${BUILD_ARCH}" = "i386" ]; then S6_ARCH="x86"; else S6_ARCH="${BUILD_ARCH}"; fi \
    \
    && curl -L -s "https://github.com/just-containers/s6-overlay/releases/download/v1.21.7.0/s6-overlay-${S6_ARCH}.tar.gz" \
        | tar zxvf - -C / \
    \
    && mkdir -p /etc/fix-attrs.d \
    \
    && git clone --branch "v0.5.0" --depth=1 \
        "https://github.com/timmo001/home-panel-api.git" /opt/api \
    \
    && cd /opt/api \
    && yarn install \
    \
    && yarn cache clean \
    && apk del --purge .build-dependencies \
    && rm -fr /tmp/*

# Entrypoint & CMD
ENTRYPOINT ["/init"]

# Build arguments
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION

# Labels
LABEL \
    maintainer="Timmo " \
    org.label-schema.description="A touch-compatible web-app for controlling the home" \
    org.label-schema.build-date=${BUILD_DATE} \
    org.label-schema.name="Home Panel" \
    org.label-schema.schema-version="1.0" \
    org.label-schema.url="https://git.timmo.xyz/home-panel" \
    org.label-schema.usage="https://github.com/timmo001/home-panel/tree/master/README.md" \
    org.label-schema.vcs-ref=${BUILD_REF} \
    org.label-schema.vcs-url="https://github.com/timmo001/home-panel" \
    org.label-schema.vendor="Timmo"
FROM node

ADD eagleeye /opt/eagleeye
WORKDIR /opt/eagleeye

RUN yarn install
kantai/oss-statistics - Dockerfile

Simple OSS metrics collection (inspired by CHAOS metrics)

FROM node:8

WORKDIR /src/oss-statistics

COPY . .

RUN npm i && npm i -g .

CMD fetch-data $START_DATE && analyze $START_DATE $END_DATE