FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /app

# copy csproj and restore as distinct layers
COPY *.sln .
COPY micro/*.csproj ./micro/
RUN dotnet restore

# copy everything else and build app
COPY micro/. ./micro/
WORKDIR /app/micro
RUN dotnet publish -c Release -o out


FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
WORKDIR /app
COPY --from=build /app/micro/out ./
ENTRYPOINT ["dotnet", "micro.dll"]
FROM alpine

RUN apk update && apk upgrade && apk add vim

ENTRYPOINT vim
FROM ruby

RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential libpq-dev nodejs sqlite3 && gem install --user rails

ONBUILD COPY app /opt/app
ONBUILD WORKDIR /opt/app

ONBUILD EXPOSE 3000
ONBUILD RUN bundle install
ONBUILD RUN rake db:migrate
ONBUILD RUN rake db:seed
FROM tomcat
COPY target/enter.war /usr/local/tomcat/webapps
ENTRYPOINT /usr/local/tomcat/bin/startup.sh && bash

FROM jenkins
USER root
ENV JAVA_OPTS=" -Xmx4096m"
ENV JENKINS_OPTS=" --handlerCounterMax=200"
RUN mkdir /var/lib/jenkins-log
EXPOSE 8080

FROM nginx
RUN apt-get update && apt-get install -y nginx
COPY cont.sh /usr/local/nginx/html
ENTRYPOINT service nginx start && bash
EXPOSE 80
FROM node:10

RUN  apt-get update \
     # Install latest chrome dev package, which installs the necessary libs to
     # make the bundled version of Chromium that Puppeteer installs work.
     && apt-get install -y wget --no-install-recommends \
     && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
     && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
     && apt-get update \
     && apt-get install -y google-chrome-unstable --no-install-recommends \
     && rm -rf /var/lib/apt/lists/* \
     && wget --quiet https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/sbin/wait-for-it.sh \
     && chmod +x /usr/sbin/wait-for-it.sh
     
# Create app directory
WORKDIR /usr/src/app

# Copy .npmrc

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

RUN npm i npm@latest -g
RUN npm install
# If you are building your code for production
# RUN npm install --only=production

# Bundle app source
COPY . .
# Run codeceptjs
CMD ./node_modules/.bin/codeceptjs run --grep "$GREP"
twang817/daft - Dockerfile

Docker Agent Forwarding Toolkit

FROM alpine:3.7

RUN apk add --no-cache \
        openssh \
        openssh-server-pam \
        socat \
        tini \
        gnupg \
    && mkdir /root/.ssh /mnt/gpg \
    && chmod 700 /root/.ssh /mnt/gpg

COPY sshd_config /etc/ssh/
COPY docker-entrypoint.sh /
COPY ssh-entrypoint.sh /

EXPOSE 22

ENTRYPOINT ["/sbin/tini", "--", "/docker-entrypoint.sh"]

CMD ["/usr/sbin/sshd", "-D"]
FROM node:10
# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY ../package*.json ./

RUN npm install
# If you are building your code for production
# RUN npm ci --only=production

# Bundle app source
COPY ../. .

ENV MONGO_CONNECTION_STRING=mongodb://localhost/tddDB

EXPOSE 5000

CMD [ "npm", "test" ]
lirios/ostree-upload - Dockerfile

:dvd: Upload missing objects to an OSTree repository

FROM rust:1.40-slim AS build
RUN mkdir /source
Add . /source/
WORKDIR /source
RUN set -ex && \
    apt-get update && \
    apt-get install -y libostree-dev libssl-dev && \
    cargo build --release && \
    strip target/release/ostree-upload && \
    strip target/release/ostree-receive && \
    mkdir /build && \
    cp target/release/ostree-upload /build/ && \
    cp target/release/ostree-receive /build/

FROM alpine:3.11
COPY --from=build /build/ostree-upload /usr/bin
COPY --from=build /build/ostree-receive /usr/bin
ENTRYPOINT ["/usr/bin/ostree-upload"]
arcus-azure/arcus.templates - src/Arcus.Templates.ServiceBus.Topic/Dockerfile

Collection of .NET templates & tooling to get started very easily.

FROM mcr.microsoft.com/dotnet/core/sdk:3.0-alpine3.10 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/core/sdk:3.0-alpine3.10 AS build
WORKDIR /src
COPY ["Arcus.Templates.ServiceBus.Topic.csproj", ""]
COPY . .
WORKDIR "/src/."
RUN dotnet build "Arcus.Templates.ServiceBus.Topic.csproj" -c Release -o /app

FROM build AS publish
RUN dotnet publish "Arcus.Templates.ServiceBus.Topic.csproj" -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Arcus.Templates.ServiceBus.Topic.dll"]
ShunsukeSano/gamingtwitter - docker/Dockerfile

ゲームしてる時用の個人Twitter

FROM php:7.3.12-fpm
COPY php.ini /usr/local/etc/php/

RUN apt-get update \
  && apt-get install -y libicu-dev libpng-dev libzip-dev zlib1g-dev default-mysql-client curl gnupg wget zip unzip \
  && docker-php-ext-install zip intl gd mysqli pdo_mysql mbstring

RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
RUN apt-get install -y nodejs
RUN npm install npm@latest yarn@latest -g

#Composer
RUN curl -sS https://getcomposer.org/installer | php \
      && mv composer.phar /usr/local/bin/composer

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_NO_INTERACTION 1
ENV COMPOSER_HOME /composer
ENV PATH $PATH:/composer/vendor/bin

WORKDIR /var/www