diff --git a/Dockerfile b/Dockerfile index a2bfb53c..9e981a2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ -FROM python:3 +FROM python:3.9.14-slim-buster MAINTAINER Karl Swanson -WORKDIR /usr/src/app - -RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - -RUN apt-get install nodejs +RUN apt-get update -y +RUN apt-get install git curl make build-essential -y +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - +RUN apt-get install nodejs -y +RUN npm install yarn -g +WORKDIR /usr/src/app COPY . . +RUN yarn install --prod RUN pip3 install -r py/requirements.txt -RUN npm install --only=prod -RUN npm run build - -EXPOSE 8058 -CMD ["python3", "py/micboard.py"] +RUN yarn build +CMD ["python", "py/micboard.py"] \ No newline at end of file diff --git a/package.json b/package.json index 994f38ea..e4fee262 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "css-loader": "^2.1.1", "file-loader": "^3.0.1", "jquery": "^3.4.1", - "node-gyp": "^4.0.0", - "node-sass": "^4.12.0", + "node-gyp": "^8.0.0", + "sass": "^1.55.0", "popper.js": "^1.15.0", "qrcode": "^1.4.1", "sass-loader": "^7.3.1",