Diff
checker
Text
Text
Bilder
Dokumente
Excel
Ordner
Legal
Enterprise
Desktop-App
Preise
Einloggen
Diffchecker Desktop herunterladen
Texte vergleichen
Finde den Unterschied zwischen zwei Textdateien
Werkzeuge
Verlauf
Live-Editor
Leerzeichen ausblenden
Gleiches ausblenden
Zeilenumbruch aus
Ansicht
Zweispaltig
Einspaltig
Vergleichsgenauigkeit
Intelligent
Wort
Zeichen
Textstile
Darstellung ändern
Syntaxhervorhebung
Syntax auswählen
Ignorieren
Text umwandeln
Zur ersten Änderung
Eingabe bearbeiten
Diffchecker Desktop
Der sicherste Weg, Diffchecker zu nutzen. Hol dir die Desktop-App: Deine Diffs verlassen nie deinen Computer!
Desktop holen
My Dockerfile vs the generated one
Erstellt
vor 3 Jahren
Diff läuft nie ab
Löschen
Exportieren
Teilen
Erklären
18 Entfernungen
Zeilen
Gesamt
Entfernt
Zeichen
Gesamt
Entfernt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
96 Zeilen
Kopieren
21 Hinzufügungen
Zeilen
Gesamt
Hinzugefügt
Zeichen
Gesamt
Hinzugefügt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
93 Zeilen
Kopieren
Kopieren
Kopiert
Kopieren
Kopiert
# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian
instead of
# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian
#
Alpine to avoid DNS resolution issues in production.
#
instead of
Alpine to avoid DNS resolution issues in production.
#
#
# https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu
# https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu
# https://hub.docker.com/_/ubuntu?tab=tags
# https://hub.docker.com/_/ubuntu?tab=tags
#
#
Kopieren
Kopiert
Kopieren
Kopiert
#
# This file is based on these images:
# This file is based on these images:
#
#
# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image
# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image
Kopieren
Kopiert
Kopieren
Kopiert
# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-
20210902
-slim - for the release image
# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-
20230227
-slim - for the release image
# - https://pkgs.org/ - resource for finding needed packages
# - https://pkgs.org/ - resource for finding needed packages
Kopieren
Kopiert
Kopieren
Kopiert
# - Ex: hexpm/elixir:1.14.
0
-erlang-
24
.3.
4
-debian-bullseye-
20210902
-slim
# - Ex: hexpm/elixir:1.14.
4
-erlang-
25
.3.
2
-debian-bullseye-
20230227
-slim
#
#
Kopieren
Kopiert
Kopieren
Kopiert
ARG ELIXIR_VERSION=1.14.
0
ARG ELIXIR_VERSION=1.14.
4
ARG OTP_VERSION=
24.3.4
ARG OTP_VERSION=
26.0
ARG DEBIAN_VERSION=bullseye-
20210902
-slim
ARG DEBIAN_VERSION=bullseye-
20230227
-slim
Kopieren
Kopiert
Kopieren
Kopiert
ARG BUILDER_IMAGE="
hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG BUILDER_IMAGE="
docker.io/
hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="
debian:${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="
docker.io/
debian:${DEBIAN_VERSION}"
FROM ${BUILDER_IMAGE} as builder
FROM ${BUILDER_IMAGE} as builder
Kopieren
Kopiert
Kopieren
Kopiert
# install build dependencies
# install build dependencies
(CUSTOM: nodejs + npm)
RUN apt-get update -y && apt-get install -y build-essential git
\
RUN apt-get update -y && apt-get install -y build-essential git
nodejs npm
\
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
# prepare build dir
# prepare build dir
WORKDIR /app
WORKDIR /app
# install hex + rebar
# install hex + rebar
RUN mix local.hex --force && \
RUN mix local.hex --force && \
mix local.rebar --force
mix local.rebar --force
# set build ENV
# set build ENV
ENV MIX_ENV="prod"
ENV MIX_ENV="prod"
# install mix dependencies
# install mix dependencies
COPY mix.exs mix.lock ./
COPY mix.exs mix.lock ./
RUN mix deps.get --only $MIX_ENV
RUN mix deps.get --only $MIX_ENV
RUN mkdir config
RUN mkdir config
# copy compile-time config files before we compile dependencies
# copy compile-time config files before we compile dependencies
# to ensure any relevant config change will trigger the dependencies
# to ensure any relevant config change will trigger the dependencies
# to be re-compiled.
# to be re-compiled.
COPY config/config.exs config/${MIX_ENV}.exs config/
COPY config/config.exs config/${MIX_ENV}.exs config/
RUN mix deps.compile
RUN mix deps.compile
Kopieren
Kopiert
Kopieren
Kopiert
# CUSTOM: copy `lib` first so tailwind purge will work
COPY lib lib
COPY priv priv
COPY priv priv
Kopieren
Kopiert
Kopieren
Kopiert
# note: if your project uses a tool like https://purgecss.com/,
# which customizes asset compilation based on what it finds in
# your Elixir templates, you will need to move the asset compilation
# step down so that `lib` is available.
COPY assets assets
COPY assets assets
Kopieren
Kopiert
Kopieren
Kopiert
# CUSTOM: install npm dependencies
RUN cd assets && npm install
# compile assets
# compile assets
RUN mix assets.deploy
RUN mix assets.deploy
# Compile the release
# Compile the release
Kopieren
Kopiert
Kopieren
Kopiert
COPY lib lib
RUN mix compile
RUN mix compile
# Changes to config/runtime.exs don't require recompiling the code
# Changes to config/runtime.exs don't require recompiling the code
COPY config/runtime.exs config/
COPY config/runtime.exs config/
COPY rel rel
COPY rel rel
RUN mix release
RUN mix release
# start a new build stage so that the final image will only contain
# start a new build stage so that the final image will only contain
# the compiled release and other runtime necessities
# the compiled release and other runtime necessities
FROM ${RUNNER_IMAGE}
FROM ${RUNNER_IMAGE}
RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales \
RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
# Set the locale
# Set the locale
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LC_ALL en_US.UTF-8
WORKDIR "/app"
WORKDIR "/app"
RUN chown nobody /app
RUN chown nobody /app
# set runner ENV
# set runner ENV
ENV MIX_ENV="prod"
ENV MIX_ENV="prod"
# Only copy the final release from the build stage
# Only copy the final release from the build stage
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/my_app ./
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/my_app ./
USER nobody
USER nobody
Kopieren
Kopiert
Kopieren
Kopiert
CMD
/app/bin/server
CMD
["sh", "-c", "/app/bin/my_app eval TodoList.Release.migrate &&
/app/bin/server
"]
Gespeicherte Diffs
Originaltext
Datei öffnen
# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian instead of # Alpine to avoid DNS resolution issues in production. # # https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu # https://hub.docker.com/_/ubuntu?tab=tags # # # This file is based on these images: # # - https://hub.docker.com/r/hexpm/elixir/tags - for the build image # - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20210902-slim - for the release image # - https://pkgs.org/ - resource for finding needed packages # - Ex: hexpm/elixir:1.14.0-erlang-24.3.4-debian-bullseye-20210902-slim # ARG ELIXIR_VERSION=1.14.0 ARG OTP_VERSION=24.3.4 ARG DEBIAN_VERSION=bullseye-20210902-slim ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}" FROM ${BUILDER_IMAGE} as builder # install build dependencies RUN apt-get update -y && apt-get install -y build-essential git \ && apt-get clean && rm -f /var/lib/apt/lists/*_* # prepare build dir WORKDIR /app # install hex + rebar RUN mix local.hex --force && \ mix local.rebar --force # set build ENV ENV MIX_ENV="prod" # install mix dependencies COPY mix.exs mix.lock ./ RUN mix deps.get --only $MIX_ENV RUN mkdir config # copy compile-time config files before we compile dependencies # to ensure any relevant config change will trigger the dependencies # to be re-compiled. COPY config/config.exs config/${MIX_ENV}.exs config/ RUN mix deps.compile COPY priv priv # note: if your project uses a tool like https://purgecss.com/, # which customizes asset compilation based on what it finds in # your Elixir templates, you will need to move the asset compilation # step down so that `lib` is available. COPY assets assets # compile assets RUN mix assets.deploy # Compile the release COPY lib lib RUN mix compile # Changes to config/runtime.exs don't require recompiling the code COPY config/runtime.exs config/ COPY rel rel RUN mix release # start a new build stage so that the final image will only contain # the compiled release and other runtime necessities FROM ${RUNNER_IMAGE} RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales \ && apt-get clean && rm -f /var/lib/apt/lists/*_* # Set the locale RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 WORKDIR "/app" RUN chown nobody /app # set runner ENV ENV MIX_ENV="prod" # Only copy the final release from the build stage COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/my_app ./ USER nobody CMD /app/bin/server
Bearbeitung
Datei öffnen
# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian # instead of Alpine to avoid DNS resolution issues in production. # # https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu # https://hub.docker.com/_/ubuntu?tab=tags # # This file is based on these images: # # - https://hub.docker.com/r/hexpm/elixir/tags - for the build image # - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20230227-slim - for the release image # - https://pkgs.org/ - resource for finding needed packages # - Ex: hexpm/elixir:1.14.4-erlang-25.3.2-debian-bullseye-20230227-slim # ARG ELIXIR_VERSION=1.14.4 ARG OTP_VERSION=26.0 ARG DEBIAN_VERSION=bullseye-20230227-slim ARG BUILDER_IMAGE="docker.io/hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" ARG RUNNER_IMAGE="docker.io/debian:${DEBIAN_VERSION}" FROM ${BUILDER_IMAGE} as builder # install build dependencies (CUSTOM: nodejs + npm) RUN apt-get update -y && apt-get install -y build-essential git nodejs npm \ && apt-get clean && rm -f /var/lib/apt/lists/*_* # prepare build dir WORKDIR /app # install hex + rebar RUN mix local.hex --force && \ mix local.rebar --force # set build ENV ENV MIX_ENV="prod" # install mix dependencies COPY mix.exs mix.lock ./ RUN mix deps.get --only $MIX_ENV RUN mkdir config # copy compile-time config files before we compile dependencies # to ensure any relevant config change will trigger the dependencies # to be re-compiled. COPY config/config.exs config/${MIX_ENV}.exs config/ RUN mix deps.compile # CUSTOM: copy `lib` first so tailwind purge will work COPY lib lib COPY priv priv COPY assets assets # CUSTOM: install npm dependencies RUN cd assets && npm install # compile assets RUN mix assets.deploy # Compile the release RUN mix compile # Changes to config/runtime.exs don't require recompiling the code COPY config/runtime.exs config/ COPY rel rel RUN mix release # start a new build stage so that the final image will only contain # the compiled release and other runtime necessities FROM ${RUNNER_IMAGE} RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales \ && apt-get clean && rm -f /var/lib/apt/lists/*_* # Set the locale RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 WORKDIR "/app" RUN chown nobody /app # set runner ENV ENV MIX_ENV="prod" # Only copy the final release from the build stage COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/my_app ./ USER nobody CMD ["sh", "-c", "/app/bin/my_app eval TodoList.Release.migrate && /app/bin/server"]
Unterschied finden