Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-media-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
matrix-media-repo
Commits
133c2df7
Commit
133c2df7
authored
5 years ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Make Dockerfile safe for Windows
parent
79fb61b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-5
6 additions, 5 deletions
Dockerfile
with
6 additions
and
5 deletions
Dockerfile
+
6
−
5
View file @
133c2df7
...
@@ -3,12 +3,11 @@
...
@@ -3,12 +3,11 @@
FROM
golang:1.12-alpine
AS
builder
FROM
golang:1.12-alpine
AS
builder
# Install build dependencies
# Install build dependencies
RUN
apk add
--no-cache
git musl-dev
RUN
apk add
--no-cache
git musl-dev dos2unix
COPY
. /opt
WORKDIR
/opt
WORKDIR
/opt
COPY
. /opt
RUN
dos2unix ./build.sh ./docker/run.sh
RUN
./build.sh
RUN
./build.sh
# ---- Stage 1 ----
# ---- Stage 1 ----
...
@@ -19,11 +18,13 @@ COPY --from=builder /opt/bin/media_repo /opt/bin/import_synapse /usr/local/bin/
...
@@ -19,11 +18,13 @@ COPY --from=builder /opt/bin/media_repo /opt/bin/import_synapse /usr/local/bin/
RUN
apk add
--no-cache
\
RUN
apk add
--no-cache
\
su-exec
\
su-exec
\
ca-certificates
ca-certificates
\
dos2unix
COPY
./config.sample.yaml /etc/media-repo.yaml.sample
COPY
./config.sample.yaml /etc/media-repo.yaml.sample
COPY
./migrations /var/lib/media-repo-migrations
COPY
./migrations /var/lib/media-repo-migrations
COPY
./docker/run.sh /usr/local/bin/
COPY
./docker/run.sh /usr/local/bin/
RUN
dos2unix /usr/local/bin/run.sh
ENV
REPO_CONFIG=/data/media-repo.yaml
ENV
REPO_CONFIG=/data/media-repo.yaml
...
...
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