Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
updated dockerfile
  • Loading branch information
wickedyoda committed Aug 15, 2024
1 parent dbc3ce0 commit 574b495
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# Build Vue.js frontend
FROM node:14.5.0-alpine as build-stage

ARG VUE_APP_VERSION
ENV VUE_APP_VERSION=${VUE_APP_VERSION}

WORKDIR /app
COPY ./frontend/package*.json ./
RUN npm install --verbose
COPY ./frontend/ ./
RUN npm run build --verbose

# Setup Container and install Flask backend
FROM python:3.8-alpine as deploy-stage

Expand All @@ -34,16 +22,16 @@ RUN apk add --no-cache \
jpeg-dev \
zlib-dev \
yaml-dev \
nginx
python3-dev

# Upgrade pip, setuptools, and wheel
RUN pip3 install --upgrade pip setuptools wheel

# Install Cython explicitly to avoid issues with PyYAML
RUN pip3 install Cython --verbose

# Install PyYAML separately with a specific version if necessary
RUN pip3 install PyYAML==5.3.1 --no-cache-dir --verbose
# Attempt to install PyYAML
RUN pip3 install --no-cache-dir --force-reinstall PyYAML==5.4.1 --verbose

# Install aiostream separately to troubleshoot installation issues
RUN pip3 install --use-pep517 aiostream==0.4.3 --no-cache-dir --verbose
Expand Down

0 comments on commit 574b495

Please sign in to comment.