Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pheweb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andres Veidenberg
Pheweb
Commits
2fe43093
Commit
2fe43093
authored
1 week ago
by
Andres Veidenberg
Browse files
Options
Downloads
Patches
Plain Diff
Update dockerfile
parent
638cd8db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#48384
passed
1 week ago
Stage: .pre
Stage: build
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Dockerfile
+17
-12
17 additions, 12 deletions
Dockerfile
docker-compose.yml
+12
-0
12 additions, 0 deletions
docker-compose.yml
requirements.txt
+4
-0
4 additions, 0 deletions
requirements.txt
with
34 additions
and
12 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
2fe43093
data/*
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
17
−
12
View file @
2fe43093
FROM
ubuntu:22.04
FROM
python:3.9-slim
RUN
apt-get update
RUN
apt-get
install
-y
python3
# Install system dependencies
RUN
apt-get update
&&
apt-get
install
-y
\
libz-dev
\
libffi-dev
\
build-essential
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Set up non-root user and prepare directories
WORKDIR
/app
RUN
groupadd
-g
568 apps
\
&&
useradd
-m
-d
/app
-s
/bin/bash
-u
568
-g
568 apps
\
&&
apt-get
install
-y
python3-pip python3-dev python3-scipy python3-venv libz-dev libffi-dev
&&
mkdir
-p
/data
\
&&
chown
-R
apps:apps /app /data
COPY
requirements.txt .
RUN
chown
apps:apps requirements.txt
USER
apps
ENV
PATH=$PATH:/app/.local/bin
RUN
python3
-m
pip
install
wheel cython
RUN
python3
-m
pip
install
pheweb
RUN
python3
-m
pip
install
markupsafe
==
2.0.1
# Install Python dependencies
RUN
pip
install
--no-cache-dir
-r
requirements.txt
# Start the server
WORKDIR
/data
EXPOSE
5000
CMD
pheweb serve
\ No newline at end of file
CMD
["pheweb", "serve"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
12
−
0
View file @
2fe43093
version
:
'
3'
services
:
pheweb
:
build
:
context
:
.
dockerfile
:
Dockerfile
ports
:
-
"
5000:5000"
volumes
:
-
./data:/data
restart
:
unless-stopped
This diff is collapsed.
Click to expand it.
requirements.txt
0 → 100644
+
4
−
0
View file @
2fe43093
wheel
cython
pheweb
markupsafe
==2.0.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment