mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 14:20:57 +00:00
25 lines
625 B
Text
25 lines
625 B
Text
|
|
|
||
|
|
FROM node:lts-alpine
|
||
|
|
|
||
|
|
RUN npm config set registry https://repo.huaweicloud.com/repository/npm/
|
||
|
|
RUN npm config set unsafe-perm true
|
||
|
|
# install simple http server for serving static content
|
||
|
|
RUN npm install -g http-server
|
||
|
|
|
||
|
|
# make the 'app' folder the current working directory
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# copy both 'package.json' and 'package-lock.json' (if available)
|
||
|
|
COPY package*.json ./
|
||
|
|
|
||
|
|
# install project dependencies
|
||
|
|
RUN npm install
|
||
|
|
|
||
|
|
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
||
|
|
COPY . .
|
||
|
|
|
||
|
|
# build app for production with minification
|
||
|
|
RUN npm run build
|
||
|
|
|
||
|
|
EXPOSE 8080
|
||
|
|
CMD [ "node", "server.js" ]
|