forked from svenihoney/docker-wetty-alpine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (27 loc) · 850 Bytes
/
Dockerfile
File metadata and controls
31 lines (27 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM node:carbon-alpine as builder
RUN apk add -U build-base python git
WORKDIR /app
#COPY . /app
RUN git clone https://github.com/butlerx/wetty /app && \
git checkout d0aaa35dbfcb30d8739c22cb3226238ad23a6d7d && \
yarn && \
yarn build && \
yarn install --production --ignore-scripts --prefer-offline
FROM node:carbon-alpine
LABEL maintainer="Sven Fischer <sven@leiderfischer.de>"
WORKDIR /app
ENV NODE_ENV=production
EXPOSE 3000
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/package.json /app/package.json
COPY --from=builder /app/index.js /app/index.js
RUN apk add -U openssh-client sshpass
#
ADD run.sh /app
# Default ENV params used by wetty
ENV REMOTE_SSH_SERVER=127.0.0.1 \
REMOTE_SSH_PORT=22 \
WETTY_PORT=3000
EXPOSE 3000
ENTRYPOINT "./run.sh"