Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nginx
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
docker-registry
nginx
Commits
58dea0f4
Commit
58dea0f4
authored
Apr 12, 2019
by
huasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update dockerfile
parent
91350205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
Dockerfile
Dockerfile
+28
-0
No files found.
Dockerfile
0 → 100644
View file @
58dea0f4
FROM
nginx:alpine
LABEL
maintainer="chenbowen <chenbw@fxqifu.com>"
COPY
nginx.conf /etc/nginx/
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
ARG
CHANGE_SOURCE=false
RUN if
[
${
CHANGE_SOURCE
}
=
true
]
;
then
\
# Change application source from dl-cdn.alpinelinux.org to aliyun source
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
;fi
RUN
apk update
\
&&
apk upgrade
\
&&
apk add
--no-cache
openssl
\
&&
apk add
--no-cache
bash
\
&&
adduser
-D
-H
-u
1000
-s
/bin/bash www
# Set upstream conf and remove the default conf
RUN
rm
/etc/nginx/conf.d/default.conf
ADD
./startup.sh /opt/startup.sh
RUN
sed
-i
's/\r//g'
/opt/startup.sh
CMD
["/bin/bash", "/opt/startup.sh"]
EXPOSE
80 443
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