Skip to content

Commit

Permalink
chore(docker): fixed dockerfile and dockerfile.contrib to use node:er…
Browse files Browse the repository at this point in the history
…bium-buster-slim (#666)

* bug: use node:erbium-buster-slim in FROM; revert dependabot changes. 

dependabot reverted the base image to alpine
this PR changes it back to node:erbium-buster-slim

* bug: revert node.alpine to node:erbium-buster-slim

* Update Dockerfile

reverted dockerfile to 15.9.0-alpine

* Update Dockerfile.contrib

change git clone section to use erbium-buster not erbium-buster-slim

* Update Dockerfile.contrib

change buster-slim to buster

* Update Dockerfile.contrib

put slim back after testing
  • Loading branch information
scyto authored Feb 22, 2021
1 parent c60a640 commit 7b93c28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/Dockerfile.contrib
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
ARG SRC=git-clone-src

##### GIT CLONE #####
FROM node:15.9.0-alpine AS git-clone-src
FROM node:erbium-buster AS git-clone-src
ARG ZWJ_BRANCH=master
ARG Z2M_BRANCH=master
USER node
WORKDIR /home/node

RUN git clone -b ${ZWJ_BRANCH} --depth 1 https://github.com/zwave-js/node-zwave-js
RUN git clone -b ${Z2M_BRANCH} --depth 1 https://github.com/zwave-js/zwavejs2mqtt

##### LOCAL SOURCE #####
FROM node:15.9.0-alpine AS local-copy-src
FROM node:erbium-buster-slim AS local-copy-src
COPY --chown=node node-zwave-js /home/node/node-zwave-js
COPY --chown=node zwavejs2mqtt /home/node/zwavejs2mqtt

Expand Down Expand Up @@ -51,7 +52,7 @@ RUN yarn link zwave-js @zwave-js/core @zwave-js/config @zwave-js/serial @zwave-j
RUN mkdir my_dist
RUN cp -Lr .git app.js package.json bin config dist hass lib public store views node_modules my_dist/

FROM node:15.9.0-alpine
FROM node:erbium-buster-slim
LABEL maintainer="robertsLando"
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
COPY --from=build /home/node/zwavejs2mqtt/my_dist /usr/src/app
Expand Down

0 comments on commit 7b93c28

Please sign in to comment.