Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai
website
Commits
c4b04d2a
Commit
c4b04d2a
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Build sitesearch separately
parent
31f89e4c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-1
3 additions, 1 deletion
Dockerfile
with
3 additions
and
1 deletion
Dockerfile
+
3
−
1
View file @
c4b04d2a
...
...
@@ -2,18 +2,20 @@
# on Go 1.16, so we build it separately.
FROM
golang:1.16
AS
gobuild
RUN
go get github.com/piranha/gostatic
RUN
go get git.autistici.org/ai/webtools/cmd/sitesearch
FROM
debian:bullseye
AS
build
RUN
apt-get
-q
update
&&
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-qy
install
--no-install-recommends
rsync git golang ca-certificates
ADD
. /src
WORKDIR
/src
COPY
--from=gobuild /go/bin/gostatic /usr/bin/gostatic
COPY
--from=gobuild /go/bin/sitesearch /usr/bin/sitesearch
RUN
./scripts/lint.sh
&&
./scripts/update.sh
FROM
registry.git.autistici.org/ai3/docker/apache2-base:master
COPY
--from=build /src/public /var/www/autistici.org
COPY
--from=build
/root
/go/bin/sitesearch /usr/sbin/sitesearch
COPY
--from=
go
build /go/bin/sitesearch /usr/sbin/sitesearch
COPY
--from=build /src/index /var/lib/sitesearch/index
COPY
templates /var/lib/sitesearch/templates
COPY
docker/conf /tmp/conf
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment