From 2f0925dbe2837d04173e34fe6af49435f38236a3 Mon Sep 17 00:00:00 2001 From: jonny Date: Thu, 15 Apr 2021 12:38:26 +0000 Subject: [PATCH] 'update files with ansible' --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fba7b7..2c39ff3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ # Base on latest (edge) alpine image FROM node:current-alpine as builder RUN apk add -U git build-base python3 && \ - git clone https://github.com/butlerx/wetty --branch main /usr/src/app + curl -L https://github.com/butlerx/wetty/archive/refs/tags/v2.0.3.tar.gz -o /tmp/wetty.tar.gz && \ + tar zxvf /tmp/wetty.tar.zxvf -C /tmp WORKDIR /usr/src/app COPY . /usr/src/app -RUN yarn && \ +RUN mv /tmp/wetty-2.0.3/* . && \ + yarn && \ yarn build && \ yarn install --production --ignore-scripts --prefer-offline @@ -18,6 +20,5 @@ COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules COPY --from=builder /usr/src/app/package.json /usr/src/app/ RUN apk add -U openssh-client sshpass && \ mkdir ~/.ssh -EXPOSE 3000 ENTRYPOINT [ "yarn", "docker-entrypoint", "--conf", "config.json" ]