'update files with ansible'
This commit is contained in:
parent
a338a542bf
commit
2f0925dbe2
@ -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" ]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user