Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
compose/Dockerfile at master · p1c2u/compose · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
p1c2u
compose
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
compose
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
71 lines (64 loc) · 1.89 KB
master
Breadcrumbs
compose
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
71 lines (64 loc) · 1.89 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
ARG
DOCKER_VERSION=18.09.7
ARG
PYTHON_VERSION=3.7.4
ARG
BUILD_ALPINE_VERSION=3.10
ARG
BUILD_DEBIAN_VERSION=slim-stretch
ARG
RUNTIME_ALPINE_VERSION=3.10.0
ARG
RUNTIME_DEBIAN_VERSION=stretch-20190708-slim
ARG
BUILD_PLATFORM=alpine
FROM
docker:${DOCKER_VERSION} AS docker-cli
FROM
python:${PYTHON_VERSION}-alpine${BUILD_ALPINE_VERSION} AS build-alpine
RUN
apk add --no-cache \
bash \
build-base \
ca-certificates \
curl \
gcc \
git \
libc-dev \
libffi-dev \
libgcc \
make \
musl-dev \
openssl \
openssl-dev \
python2 \
python2-dev \
zlib-dev
ENV
BUILD_BOOTLOADER=1
FROM
python:${PYTHON_VERSION}-${BUILD_DEBIAN_VERSION} AS build-debian
RUN
apt-get update && apt-get install -y \
curl \
gcc \
git \
libc-dev \
libgcc-6-dev \
make \
openssl \
python2.7-dev
FROM
build-${BUILD_PLATFORM} AS build
COPY
docker-compose-entrypoint.sh /usr/local/bin/
ENTRYPOINT
[
"sh"
,
"/usr/local/bin/docker-compose-entrypoint.sh"
]
COPY
--from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
WORKDIR
/code/
#
FIXME(chris-crone): virtualenv 16.3.0 breaks build, force 16.2.0 until fixed
RUN
pip install virtualenv==16.2.0
RUN
pip install tox==2.9.1
COPY
requirements.txt .
COPY
requirements-dev.txt .
COPY
.pre-commit-config.yaml .
COPY
tox.ini .
COPY
setup.py .
COPY
README.md .
COPY
compose compose/
RUN
tox --notest
COPY
. .
ARG
GIT_COMMIT=unknown
ENV
DOCKER_COMPOSE_GITSHA=$GIT_COMMIT
RUN
script/build/linux-entrypoint
FROM
alpine:${RUNTIME_ALPINE_VERSION} AS runtime-alpine
FROM
debian:${RUNTIME_DEBIAN_VERSION} AS runtime-debian
FROM
runtime-${BUILD_PLATFORM} AS runtime
COPY
docker-compose-entrypoint.sh /usr/local/bin/
ENTRYPOINT
[
"sh"
,
"/usr/local/bin/docker-compose-entrypoint.sh"
]
COPY
--from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
COPY
--from=build /usr/local/bin/docker-compose /usr/local/bin/docker-compose
You can’t perform that action at this time.