Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mini-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
mini-router
Commits
d3610e62
Commit
d3610e62
authored
Aug 14, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
219ffeba
Pipeline
#4659
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
7 deletions
+37
-7
Dockerfile
Dockerfile
+34
-5
supervisord.conf
supervisord.conf
+3
-2
No files found.
Dockerfile
View file @
d3610e62
FROM
debian:bullseye as frp
FROM
debian:bullseye as frp
ENV
FRP_VERSION=0.37.1
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
ADD
https://github.com/fatedier/frp/releases/download/v0.37.1/frp_0.37.1_linux_amd64.tar.gz ./
ADD
https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz ./
RUN
tar
xf frp_0.37.1_linux_amd64.tar.gz
RUN
tar
xf frp_
${
FRP_VERSION
}
_linux_amd64.tar.gz
RUN
mv
frp_
${
FRP_VERSION
}
_linux_amd64 frp
# https://github.com/masipcat/wireguard-go-docker/blob/master/Dockerfile
FROM
golang:1.16-buster as wireguard
ARG
wg_go_tag=0.0.20210424
ARG
wg_tools_tag=v1.0.20210424
RUN
git clone
--depth
1
--branch
$wg_go_tag
https://git.zx2c4.com/wireguard-go
&&
\
cd
wireguard-go
&&
\
make
&&
\
make
install
ENV
WITH_WGQUICK=yes
RUN
git clone
--depth
1
--branch
$wg_tools_tag
https://git.zx2c4.com/wireguard-tools
&&
\
cd
wireguard-tools
&&
\
cd
src
&&
\
make
&&
\
make
install
FROM
debian:bullseye
FROM
debian:bullseye
RUN
apt update
&&
apt
install
-y
\
supervisor
\
RUN
apt update
&&
apt
install
--no-install-recommends
-y
\
supervisor openssh-server python3 iptables iproute2
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
--from=frp /usr/src/app/frp_0.37.1_linux_amd64/ /opt/frp
COPY
--from=frp /usr/src/app/frp /opt/frp
RUN
mkdir
-p
/var/run/sshd
COPY
--from=wireguard /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
COPY
supervisord.conf /etc/supervisord.conf
EXPOSE
22
CMD
["/usr/bin/supervisord"]
\ No newline at end of file
supervisord.conf
View file @
d3610e62
...
@@ -4,5 +4,6 @@ nodaemon=true
...
@@ -4,5 +4,6 @@ nodaemon=true
[
program
:
sshd
]
[
program
:
sshd
]
command
=/
usr
/
sbin
/
sshd
-
D
command
=/
usr
/
sbin
/
sshd
-
D
[
program
:
pythonapp
]
[
program
:
frpc
]
command
=/
path
/
to
/
python
myapp
.
py
-
x
args
etc
etc
directory
=/
opt
/
frp
\ No newline at end of file
command
=/
opt
/
frp
/
frpc
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment