Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imghost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Janne Mareike Koschinski
imghost
Commits
da671992
Verified
Commit
da671992
authored
2 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
improve dockerfile
parent
a4cab0f5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2712
passed
2 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+13
-2
13 additions, 2 deletions
Dockerfile
with
13 additions
and
2 deletions
Dockerfile
+
13
−
2
View file @
da671992
...
...
@@ -3,14 +3,25 @@ FROM golang:alpine as go_builder
RUN
apk add
--no-cache
musl-dev
WORKDIR
/go/src/app
COPY
*.go
go.* ./
COPY
go.* ./
RUN
go mod download
COPY
*.go ./
RUN
CGO_ENABLED
=
false
go build
-o
app .
FROM
node:alpine
as
asset_builder
RUN
apk
--no-cache
add
\
--virtual
.build-deps
\
alpine-sdk
\
cmake
\
libssh2 libssh2-dev
\
git
\
dep
\
bash
\
curl
\
python3
WORKDIR
/app
COPY
package* /app/
RUN
npm
i
nstall
RUN
npm
c
i
COPY
assets /app/assets
RUN
npm run build
...
...
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