Skip to content

Commit

Permalink
Merge pull request #12 from Avaiga/fix/dockerfile
Browse files Browse the repository at this point in the history
Fix Dockerfile
  • Loading branch information
FlorianJacta authored Sep 11, 2024
2 parents 0f24a84 + a2e4a34 commit e57631d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ WORKDIR /app
COPY src/requirements.txt .
RUN pip install -r requirements.txt

RUN curl -sL https://deb.nodesource.com/setup_18.x | bash && apt install nodejs

# Install the node components.
COPY src/webcam/webui /tmp/webui
RUN npm i /tmp/webui/

# Copy the application source code.
COPY src .

CMD ["taipy", "run", "--no-debug", "--no-reloader", "main.py", "-H", "0.0.0.0", "-P", "5000"]
# Build the extension.
RUN cd webcam/webui && rm package-lock.json && npm i && \
npm i /usr/local/lib/python3.11/site-packages/taipy/gui/webapp && \
npm run build && cd -

CMD ["taipy", "run", "--no-debug", "--no-reloader", "main.py", "-H", "0.0.0.0", "-P", "5000"]
2 changes: 1 addition & 1 deletion src/webcam/webui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = (env, options) => {
// This pathname should point to the location of <TAIPY_DIR>/webapp/taipy-gui-deps-manifest.json
// where <TAIPY_DIR> is the installation directory for Taipy GUI on your filesystem.
// You may want to use the script 'find_taipy_gui_dir.py' to get this information.
manifest: path.resolve('C:/Users/jacta/.conda/envs/face/lib/site-packages/taipy/gui/webapp/taipy-gui-deps-manifest.json'),
manifest: path.resolve('/usr/local/lib/python3.11/site-packages/taipy/gui/webapp/taipy-gui-deps-manifest.json'),
name: 'TaipyGuiDependencies'
}),
]
Expand Down

0 comments on commit e57631d

Please sign in to comment.