Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TedImg - img.tedomum.net
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TeDomum
TedImg - img.tedomum.net
Commits
7e22e821
Commit
7e22e821
authored
May 28, 2018
by
kaiyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build from alpine and process assets during the build
parent
974d16e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
.dockerignore
.dockerignore
+2
-0
Dockerfile
Dockerfile
+13
-8
docker/supervisor.conf
docker/supervisor.conf
+2
-2
No files found.
.dockerignore
0 → 100644
View file @
7e22e821
node_modules/
Dockerfile
Dockerfile
View file @
7e22e821
FROM
python:3
FROM
python:3
-alpine
RUN
apt-get update
\
&&
apt-get
install
--no-install-recommends
-y
nginx supervisor
\
&&
apt-get clean
RUN
apk add
--no-cache
nginx supervisor
ADD
requirements.txt /requirements.txt
RUN
pip
install
-r
/requirements.txt
ADD
. /app
WORKDIR
/app
ADD
tedimg /tedimg
ADD
docker /config
RUN
apk add
--no-cache
nodejs
\
&&
npm
install
\
&&
npm run build
\
&&
rm
-rf
node_modules
\
&&
apk del nodejs
RUN
apk add
--no-cache
gcc libjpeg-turbo-dev zlib zlib-dev
\
&&
pip
install
-r
/app/requirements.txt
\
&&
apk del gcc libjpeg-turbo-dev zlib-dev
EXPOSE
80
...
...
docker/supervisor.conf
View file @
7e22e821
...
...
@@ -4,9 +4,9 @@ nodaemon=true
loglevel
=
DEBUG
[
program
:
nginx
]
command
=
nginx
-
c
/
config
/
nginx
.
conf
command
=
nginx
-
c
/
app
/
docker
/
nginx
.
conf
redirect_stderr
=
true
[
program
:
flask
]
command
= /
usr
/
local
/
bin
/
uwsgi
--
ini
/
config
/
uwsgi
.
conf
command
= /
usr
/
local
/
bin
/
uwsgi
--
ini
/
app
/
docker
/
uwsgi
.
conf
redirect_stderr
=
true
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