Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
mtproto_proxy
Commits
e46e69b7
Unverified
Commit
e46e69b7
authored
Feb 16, 2019
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docker build for cases when prod-* configs already exist
parent
68c4659f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Dockerfile
Dockerfile
+4
-4
No files found.
Dockerfile
View file @
e46e69b7
# Based on https://github.com/erlang/docker-erlang-example
# Based on https://github.com/erlang/docker-erlang-example
FROM
erlang:alpine
FROM
erlang:alpine
as builder
RUN
apk add
--no-cache
git
RUN
apk add
--no-cache
git
...
@@ -12,8 +12,8 @@ COPY rebar3 rebar3
...
@@ -12,8 +12,8 @@ COPY rebar3 rebar3
COPY
rebar.config rebar.config
COPY
rebar.config rebar.config
COPY
rebar.lock rebar.lock
COPY
rebar.lock rebar.lock
COPY
config config
COPY
config config
RUN
[
!
-f
config/prod-sys.config
]
&&
cp
config/sys.config.example config/prod-sys.config
RUN
if
[
!
-f
config/prod-sys.config
]
;
then
cp
config/sys.config.example config/prod-sys.config
;
fi
RUN
[
!
-f
config/prod-vm.args
]
&&
cp
config/vm.args.example config/prod-vm.args
RUN
if
[
!
-f
config/prod-vm.args
]
;
then
cp
config/vm.args.example config/prod-vm.args
;
fi
RUN
rebar3 as prod release
RUN
rebar3 as prod release
...
@@ -24,7 +24,7 @@ RUN apk add --no-cache openssl && \
...
@@ -24,7 +24,7 @@ RUN apk add --no-cache openssl && \
RUN
mkdir
-p
/opt
RUN
mkdir
-p
/opt
RUN
mkdir
-p
/var/log/mtproto-proxy
RUN
mkdir
-p
/var/log/mtproto-proxy
COPY
--from=
0
/build/mtproto_proxy/_build/prod/rel/mtp_proxy /opt/mtp_proxy
COPY
--from=
builder
/build/mtproto_proxy/_build/prod/rel/mtp_proxy /opt/mtp_proxy
ENTRYPOINT
["/usr/bin/dumb-init", "--"]
ENTRYPOINT
["/usr/bin/dumb-init", "--"]
CMD
["/opt/mtp_proxy/bin/mtp_proxy", "foreground"]
CMD
["/opt/mtp_proxy/bin/mtp_proxy", "foreground"]
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