We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe4374 commit d42996cCopy full SHA for d42996c
Dockerfile
@@ -0,0 +1,21 @@
1
+FROM golang:alpine AS builder
2
+
3
+WORKDIR /usr/src/app
4
5
+COPY . .
6
+RUN apk add make openssh
7
+RUN make build
8
9
10
+FROM alpine
11
12
+RUN apk add openssh
13
+RUN mkdir /root/.ssh
14
+WORKDIR /root/.ssh
15
+RUN ssh-keygen -t rsa -C "chatkey" -f id_rsa
16
17
+WORKDIR /usr/local/bin
18
19
+COPY --from=builder /usr/src/app/ssh-chat .
20
+RUN chmod +x ssh-chat
21
+CMD ["/usr/local/bin/ssh-chat"]
docker-compose.yml
@@ -0,0 +1,7 @@
+version: '3'
+services:
+ app:
+ build: .
+ ports:
+ - 2022:2022
+ restart: always
0 commit comments