Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
ce436fb4
Commit
ce436fb4
authored
Apr 09, 2020
by
Markus Bergholz
Committed by
GitHub
Apr 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce container image size from 845MB to 98MB (#32)
Thank you!
parent
15ae9091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
Dockerfile
Dockerfile
+13
-5
No files found.
Dockerfile
View file @
ce436fb4
FROM
ubuntu:latest
EXPOSE
3478/tcp 3478/udp
USER
root
FROM
ubuntu:18.04 as build
RUN
set
-ex
&&
\
apt-get update
&&
\
...
...
@@ -17,8 +13,20 @@ RUN set -ex && \
RUN
cd
/opt
&&
git clone https://github.com/jselbie/stunserver.git
&&
cd
stunserver
&&
make
FROM
ubuntu:18.04
EXPOSE
3478/tcp 3478/udp
RUN
apt update
&&
apt
install
libssl1.1
&&
apt-get clean
RUN
mkdir
/opt/stunserver
COPY
--from=build /opt/stunserver/stunclient /opt/stunserver/stunclient
COPY
--from=build /opt/stunserver/stunserver /opt/stunserver/stunserver
WORKDIR
/opt/stunserver
HEALTHCHECK
CMD /opt/stunserver/stunclient localhost
ENTRYPOINT
["/opt/stunserver/stunserver"]
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