Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TFS
controller
Commits
9583ba6c
Commit
9583ba6c
authored
2 years ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Updated WebUI Dockerfile
parent
589d201d
No related branches found
No related tags found
1 merge request
!54
Release 2.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/webui/Dockerfile
+14
-1
14 additions, 1 deletion
src/webui/Dockerfile
with
14 additions
and
1 deletion
src/webui/Dockerfile
+
14
−
1
View file @
9583ba6c
...
@@ -54,12 +54,25 @@ COPY --chown=webui:webui common_requirements.in common_requirements.in
...
@@ -54,12 +54,25 @@ COPY --chown=webui:webui common_requirements.in common_requirements.in
RUN
pip-compile
--quiet
--output-file
=
common_requirements.txt common_requirements.in
RUN
pip-compile
--quiet
--output-file
=
common_requirements.txt common_requirements.in
RUN
python3
-m
pip
install
-r
common_requirements.txt
RUN
python3
-m
pip
install
-r
common_requirements.txt
# Add common files into working directory
COPY
--chown=webui:webui src/common/. common/
RUN
rm
-rf
common/proto
# Create proto sub-folder, copy .proto files, and generate Python code
RUN
mkdir
-p
common/proto
WORKDIR
/home/webui/teraflow/common/proto
RUN
touch
__init__.py
COPY
--chown=webui:webui proto/*.proto ./
RUN
python3
-m
grpc_tools.protoc
-I
=
.
--python_out
=
.
--grpc_python_out
=
.
*
.proto
RUN
rm
*
.proto
RUN
find
.
-type
f
-exec
sed
-i
-E
's/(import\ .*)_pb2/from . \1_pb2/g'
{}
\;
WORKDIR
/home/webui/teraflow
COPY
--chown=webui:webui src/webui/requirements.in requirements.in
COPY
--chown=webui:webui src/webui/requirements.in requirements.in
RUN
pip-compile
--quiet
--output-file
=
requirements.txt requirements.in
RUN
pip-compile
--quiet
--output-file
=
requirements.txt requirements.in
RUN
pip
install
-r
requirements.txt
RUN
pip
install
-r
requirements.txt
# Add files into working directory
# Add files into working directory
COPY
--chown=webui:webui src/common/. common/
COPY
--chown=webui:webui src/context/__init__.py context/__init__.py
COPY
--chown=webui:webui src/context/__init__.py context/__init__.py
COPY
--chown=webui:webui src/context/client/. context/client/
COPY
--chown=webui:webui src/context/client/. context/client/
COPY
--chown=webui:webui src/device/__init__.py device/__init__.py
COPY
--chown=webui:webui src/device/__init__.py device/__init__.py
...
...
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