mirror of
https://github.com/gogs/gogs.git
synced 2025-04-29 06:17:35 +00:00
In order to have an up to date Docker image based on alpine 3.5 and having Gogs built with Go 1.8 Refs: [ #4145 ]
22 lines
452 B
Bash
Executable File
22 lines
452 B
Bash
Executable File
#!/bin/sh
|
|
# Finalize the build
|
|
|
|
set -x
|
|
set -e
|
|
|
|
# Move to final place
|
|
mv /app/gogs/build/gogs /app/gogs/
|
|
mv /app/gogs/build/templates /app/gogs/
|
|
mv /app/gogs/build/public /app/gogs/
|
|
mv /app/gogs/build/docker /app/gogs/
|
|
|
|
# Final cleaning
|
|
rm -rf /app/gogs/build
|
|
rm /app/gogs/docker/build.sh
|
|
rm /app/gogs/docker/build-go.sh
|
|
rm /app/gogs/docker/finalize.sh
|
|
rm /app/gogs/docker/nsswitch.conf
|
|
rm /app/gogs/docker/README.md
|
|
|
|
rm -rf /tmp/go
|
|
rm -rf /usr/local/go |