Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
twitter_syncer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
twitter_syncer
Commits
a02a0d71
Commit
a02a0d71
authored
Oct 12, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add file
parent
da212b35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
.gitignore
.gitignore
+1
-0
Dockerfile
Dockerfile
+21
-0
Makefile
Makefile
+20
-0
No files found.
.gitignore
View file @
a02a0d71
.idea
build
Dockerfile
0 → 100644
View file @
a02a0d71
FROM
golang:1.22-alpine AS build
# Install dependencies
RUN
apk update
&&
\
apk upgrade
&&
\
apk add
--no-cache
bash git openssh make build-base
WORKDIR
/build
ADD
. /build/twitter_syncer
RUN
cd
/build/twitter_syncer
&&
make
&&
cp
build/bin/twitter_syncer /twitter_syncer
FROM
alpine
WORKDIR
/root
COPY
--from=build /twitter_syncer /usr/bin/twitter_syncer
#COPY ./app.json /root/app.json
ENTRYPOINT
[ "twitter_syncer" ]
\ No newline at end of file
Makefile
0 → 100644
View file @
a02a0d71
.PHONY
:
default twitter_syncer docker
GOBIN
=
$(
shell
pwd
)
/build/bin
GO
?=
latest
GOFILES_NOVENDOR
:=
$(
shell
go list
-f
"{{.Dir}}"
./...
)
TAG
=
latest
default
:
twitter_syncer
all
:
twitter_syncer docker
twitter_syncer
:
go build
-o
=
${
GOBIN
}
/
$@
-gcflags
"all=-N -l"
.
@
echo
"Done building."
docker
:
docker build
-t
twitter_syncer:
${
TAG
}
.
clean
:
rm
-fr
build/
*
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