Merge some command to reduce the number of layers created (writing each layer takes quite a long time on my rpi, so this speeds up the dev cycle a bit)

This commit is contained in:
Pagan Gazzard 2015-03-06 17:30:49 +00:00 committed by Pablo Carranza Vélez
parent a5fa19cafe
commit e7b5fce5f5
3 changed files with 9 additions and 12 deletions

View File

@ -40,13 +40,12 @@ RUN apt-get -q update \
# Copy source
COPY . /app/
RUN chmod +x /app/src/enterContainer.sh
RUN /app/node_modules/.bin/coffee -c /app/src
RUN chmod +x /app/src/enterContainer.sh \
&& /app/node_modules/.bin/coffee -c /app/src \
&& ln -sf /app/entry.sh /start # Needed for legacy
ENV SUPERVISOR_IMAGE resin/i386-supervisor
ENV CONFIG_MOUNT_POINT /boot/config.json
ENV LED_FILE /dev/null
# Needed for legacy
RUN ln -sf /app/entry.sh /start
CMD ["/app/entry.sh"]

View File

@ -33,9 +33,8 @@ RUN apt-get -q update \
# Copy source
COPY . /app/
RUN chmod +x /app/src/enterContainer.sh
RUN /app/node_modules/.bin/coffee -c /app/src
RUN chmod +x /app/src/enterContainer.sh \
&& /app/node_modules/.bin/coffee -c /app/src \
&& ln -sf /app/entry.sh /start # Needed for legacy
# Needed for legacy
RUN ln -sf /app/entry.sh /start
CMD ["/app/entry.sh"]

View File

@ -33,13 +33,12 @@ RUN apt-get -q update \
# Copy source
COPY . /app/
RUN chmod +x /app/src/enterContainer.sh
RUN /app/node_modules/.bin/coffee -c /app/src
RUN chmod +x /app/src/enterContainer.sh \
&& /app/node_modules/.bin/coffee -c /app/src \
&& ln -sf /app/entry.sh /start # Needed for legacy
ENV SUPERVISOR_IMAGE resin/x86_64-supervisor
ENV CONFIG_MOUNT_POINT /boot/config.json
ENV LED_FILE /dev/null
# Needed for legacy
RUN ln -sf /app/entry.sh /start
CMD ["/app/entry.sh"]