'update files with ansible'

This commit is contained in:
jonny 2021-04-15 12:38:26 +00:00
parent a338a542bf
commit 2f0925dbe2

View File

@ -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" ]