Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
writeFrame
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
gargantext
writeFrame
Commits
c5b193e0
Unverified
Commit
c5b193e0
authored
Aug 15, 2021
by
David Mehren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove superfluous basebuilder image
Signed-off-by:
David Mehren
<
git@herrmehren.de
>
parent
2dab7f18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
Dockerfile
alpine/Dockerfile
+2
-6
Dockerfile
debian/Dockerfile
+2
-6
No files found.
alpine/Dockerfile
View file @
c5b193e0
FROM
node:16.9.0-alpine@sha256:697313d55634a94b36cc5cf75a687b210c7e4a8e433e64d80893bcfca9b11de8 AS base
FROM
base AS basebuilder
RUN
apk update
FROM
basebuilder AS builder
FROM
base AS builder
# Build arguments to change source url, branch or tag
ARG
CODIMD_REPOSITORY
ARG
HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git
...
...
@@ -12,7 +8,7 @@ ARG VERSION=master
RUN if
[
-n
"
${
CODIMD_REPOSITORY
}
"
]
;
then
echo
"CODIMD_REPOSITORY is deprecated. Please use HEDGEDOC_REPOSITORY instead"
&&
exit
1
;
fi
# Clone the source and remove git repository but keep the HEAD file
RUN
apk add git jq
RUN
apk
update
&&
apk
add git jq
RUN
git clone
--depth
1
--branch
"
$VERSION
"
"
$HEDGEDOC_REPOSITORY
"
/hedgedoc
RUN
git
-C
/hedgedoc log
--pretty
=
format:
'%ad %h %d'
--abbrev-commit
--date
=
short
-1
RUN
git
-C
/hedgedoc rev-parse HEAD
>
/tmp/gitref
...
...
debian/Dockerfile
View file @
c5b193e0
FROM
node:16.9.0-slim@sha256:fca208cb6a90179412cc78ac590a81c3b802b2d3a66b202e31586a9b702e101c AS base
FROM
base AS basebuilder
RUN
apt-get update
FROM
basebuilder AS builder
FROM
base AS builder
# Build arguments to change source url, branch or tag
ARG
CODIMD_REPOSITORY
ARG
HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git
...
...
@@ -12,7 +8,7 @@ ARG VERSION=master
RUN if
[
-n
"
${
CODIMD_REPOSITORY
}
"
]
;
then
echo
"CODIMD_REPOSITORY is deprecated. Please use HEDGEDOC_REPOSITORY instead"
&&
exit
1
;
fi
# Clone the source and remove git repository but keep the HEAD file
RUN
apt-get
install
--no-install-recommends
-y
git jq ca-certificates
RUN
apt-get
update
&&
apt-get
install
--no-install-recommends
-y
git jq ca-certificates
RUN
git clone
--depth
1
--branch
"
$VERSION
"
"
$HEDGEDOC_REPOSITORY
"
/hedgedoc
RUN
git
-C
/hedgedoc log
--pretty
=
format:
'%ad %h %d'
--abbrev-commit
--date
=
short
-1
RUN
git
-C
/hedgedoc rev-parse HEAD
>
/tmp/gitref
...
...
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