Skip to content

Commit

Permalink
Reorder Docker commands for local dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
sescandell committed Apr 7, 2020
1 parent f8a75f5 commit befffcd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,31 @@ LABEL \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$VERSION

COPY qemu-* /usr/bin/

# System dependencies
RUN apk add --no-cache tzdata nmap ffmpeg sqlite openssl gzip

RUN mkdir /src
WORKDIR /src
ADD . /src
COPY ./static /src/server/static
WORKDIR /src/server
WORKDIR /tmp

# Install OZW in a dedicated RUN to benefit from Docker cache on local dev'
RUN apk add --no-cache --virtual .build-deps make gcc g++ python libffi-dev linux-headers git udev coreutils \
# Install OZW 1.6 - Commit 5d18bbfb21d8cdc61ee6baae6f478c963297dfc5 - March, 5th 2020
&& cd /tmp \
&& git clone https://github.com/OpenZWave/open-zwave.git \
&& cd open-zwave \
&& git checkout 5d18bbfb21d8cdc61ee6baae6f478c963297dfc5 \
&& make \
&& make install \
&& cd /src/server \
&& rm -rf /tmp/open-zwave \
# Install Gladys
&& npm install --unsafe-perm --production \
&& cd /tmp \
&& rm -rf /tmp/open-zwave

COPY qemu-* /usr/bin/

# Install Gladys
RUN mkdir /src
WORKDIR /src
ADD . /src
COPY ./static /src/server/static
WORKDIR /src/server
RUN npm ci --unsafe-perm --production \
&& npm cache clean --force \
&& apk del .build-deps

Expand Down

0 comments on commit befffcd

Please sign in to comment.