Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cicer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quique
cicer
Commits
30f496c5
Commit
30f496c5
authored
4 years ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
Add dockerfile
parent
54dca2a8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+7
-0
7 additions, 0 deletions
.dockerignore
Dockerfile
+30
-0
30 additions, 0 deletions
Dockerfile
docker-compose.yml
+15
-0
15 additions, 0 deletions
docker-compose.yml
with
52 additions
and
0 deletions
.dockerignore
0 → 100644
+
7
−
0
View file @
30f496c5
/.git
/node_modules
/.pnp
.pnp.js
/build
/cicer
/test.db
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
30
−
0
View file @
30f496c5
FROM
golang
as
go_build
WORKDIR
/src/
COPY
main.go go.* /src/
COPY
api /src/api
RUN
CGO_ENABLED
=
1 go build
-o
cicer
FROM
node
as
js_build
WORKDIR
/src/
COPY
*.json /src/
COPY
src /src/src
COPY
public /src/public
RUN
npm
install
&&
npm run build
FROM
debian
ENV
ASSETS_PATH="/assets"
ENV
DB_PATH="/data/cicer.db"
COPY
--from=go_build /src/cicer /cicer
COPY
--from=js_build /src/build /assets
VOLUME
/data
ENTRYPOINT
["/cicer"]
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
15
−
0
View file @
30f496c5
cicer
:
container_name
:
cicer
hostname
:
cicer
image
:
cicer
restart
:
always
user
:
112:65534
ports
:
-
"
0.0.0.0:8080:8080"
volumes
:
-
/opt/cicer:/data
environment
:
-
SIGNKEY=<some-random-key>
-
MAIL_SERVER=
-
MAIL_ADDR=
-
MAIL_PASS=
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