Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wg-gen-web
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
wg-gen-web
Commits
185f1355
Commit
185f1355
authored
5 years ago
by
vx3r
Browse files
Options
Downloads
Patches
Plain Diff
all docker images to alpine
parent
5cb19c36
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
Dockerfile.dev
+8
-7
8 additions, 7 deletions
Dockerfile.dev
with
11 additions
and
10 deletions
.gitlab-ci.yml
+
2
−
2
View file @
185f1355
...
...
@@ -4,9 +4,9 @@ stages:
build-back
:
stage
:
build
image
:
golang:
latest
image
:
golang:
alpine
script
:
-
GOOS=linux GOARCH=amd64
go build -o ${CI_PROJECT_NAME}-linux-amd64
-
go build -o ${CI_PROJECT_NAME}-linux-amd64
artifacts
:
paths
:
-
${CI_PROJECT_NAME}-linux-amd64
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
1
View file @
185f1355
FROM
debian:stable-slim
FROM
alpine
WORKDIR
/app
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.dev
+
8
−
7
View file @
185f1355
FROM golang
as
build-back
WORKDIR /
wg-gen-web
FROM golang
:alpine AS
build-back
WORKDIR /
app
ADD . .
RUN go build -o wg-gen-web-linux-amd64
FROM node:10-alpine as build-front
WORKDIR /
ui
WORKDIR /
app
ADD ui .
RUN npm install
RUN npm run build
FROM
debian:stable-slim
FROM
alpine
WORKDIR /app
COPY --from=build-back /
wg-gen-web
/wg-gen-web-linux-amd64 .
COPY --from=build-front /
ui
/dist ./ui/dist
COPY --from=build-back /
app
/wg-gen-web-linux-amd64 .
COPY --from=build-front /
app
/dist ./ui/dist
ADD .env .
RUN chmod +x ./wg-gen-web-linux-amd64
RUN apk add --no-cache ca-certificates
EXPOSE 8080
CMD ["/app/wg-gen-web-linux-amd64"]
\ No newline at end of file
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