Last active
June 11, 2020 07:55
-
-
Save gxm11/e7eeb11a90251bac6698cbcdd2025602 to your computer and use it in GitHub Desktop.
run gogs on sae docker virtual machine...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # for alpine 3.8 | |
| apk add --no-cache gogs bash | |
| cd /usr/bin | |
| ln -s /usr/share/webapps/gogs/templates templates | |
| ln -s /usr/share/webapps/gogs/public public | |
| mkdir custom | |
| mkdir custom/conf | |
| chmod -R 777 custom templates public | |
| adduser -D git | |
| cat > /etc/Procfile <<EOF | |
| web: su git -c 'gogs web -p $PORT' | |
| EOF | |
| mint reload | |
| mint start web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment