mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-23 18:33:35 +00:00
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:
parent
a5fa19cafe
commit
e7b5fce5f5
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user