Skip to content

Commit

Permalink
move ARG definitions to improve cache performance (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Apr 26, 2018
1 parent b3c418f commit 8a32ad8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dockerfile/release.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM python:3.6-alpine
LABEL maintainer="vapor@vapor.io"

ARG BUILD_DATE
ARG BUILD_VERSION
ARG VCS_REF

# Environment variables for built-in emulator configuration.
ENV PLUGIN_DEVICE_CONFIG="/synse/emulator/config" \
PLUGIN_CONFIG="/synse/emulator"
Expand All @@ -29,6 +25,10 @@ RUN set -e -x \

# Image Metadata -- http://label-schema.org/rc1/
# This is set after the dependency install so we can cache that layer
ARG BUILD_DATE
ARG BUILD_VERSION
ARG VCS_REF

LABEL org.label-schema.schema-version="1.0" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="vaporio/synse-server" \
Expand Down
8 changes: 4 additions & 4 deletions dockerfile/slim.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM python:3.6-alpine
LABEL maintainer="vapor@vapor.io"

ARG BUILD_DATE
ARG BUILD_VERSION
ARG VCS_REF

COPY requirements.txt requirements.txt

RUN set -e -x \
Expand All @@ -18,6 +14,10 @@ RUN set -e -x \

# Image Metadata -- http://label-schema.org/rc1/
# This is set after the dependency install so we can cache that layer
ARG BUILD_DATE
ARG BUILD_VERSION
ARG VCS_REF

LABEL org.label-schema.schema-version="1.0" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="vaporio/synse-server" \
Expand Down

0 comments on commit 8a32ad8

Please sign in to comment.