mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
feat: fix docker container
This commit is contained in:
parent
433256b7b2
commit
ce86003c2b
3 changed files with 23 additions and 14 deletions
|
@ -6,4 +6,3 @@ data
|
||||||
publicDirs
|
publicDirs
|
||||||
nextStatic
|
nextStatic
|
||||||
devel
|
devel
|
||||||
.git
|
|
||||||
|
|
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -1,9 +1,9 @@
|
||||||
[submodule "modules/qmining/qmining-page"]
|
[submodule "modules/qmining/qmining-page"]
|
||||||
path = submodules/qmining-page
|
path = submodules/qmining-page
|
||||||
url = git@gitlab.com:MrFry/qmining-page.git
|
url = https://gitlab.com/MrFry/qmining-page
|
||||||
[submodule "modules/dataEditor/qmining-data-editor"]
|
[submodule "modules/dataEditor/qmining-data-editor"]
|
||||||
path = submodules/qmining-data-editor
|
path = submodules/qmining-data-editor
|
||||||
url = git@gitlab.com:MrFry/qmining-data-editor.git
|
url = https://gitlab.com/MrFry/qmining-data-editor
|
||||||
[submodule "qminingPublic/moodle-test-userscript"]
|
[submodule "qminingPublic/moodle-test-userscript"]
|
||||||
path = submodules/moodle-test-userscript
|
path = submodules/moodle-test-userscript
|
||||||
url = git@gitlab.com:MrFry/moodle-test-userscript.git
|
url = https://gitlab.com/MrFry/moodle-test-userscript
|
||||||
|
|
30
Dockerfile
30
Dockerfile
|
@ -1,16 +1,26 @@
|
||||||
FROM node:16
|
FROM docker.io/node:19.8.1-alpine3.17 as builder
|
||||||
|
|
||||||
WORKDIR /server
|
WORKDIR /server
|
||||||
COPY package.json ./
|
|
||||||
COPY package-lock.json ./
|
|
||||||
|
|
||||||
# RUN npm i
|
RUN apk add python3 \
|
||||||
|
make \
|
||||||
|
gcc \
|
||||||
|
g++ \
|
||||||
|
libc-dev \
|
||||||
|
git \
|
||||||
|
openssh-client \
|
||||||
|
bash
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
# RUN npm run export
|
RUN npm install
|
||||||
|
RUN bash ./scripts/setup.sh
|
||||||
|
|
||||||
# CMD [ "bash", "scripts/make.sh" ]
|
FROM docker.io/node:19.8.1-alpine3.17
|
||||||
# CMD [ "npm", "run", "start" ]
|
|
||||||
CMD [ "scripts/start.sh" ]
|
|
||||||
|
|
||||||
EXPOSE 80
|
# required for some API info
|
||||||
EXPOSE 8080
|
RUN apk add git
|
||||||
|
|
||||||
|
WORKDIR /server
|
||||||
|
COPY --from=builder /server .
|
||||||
|
|
||||||
|
CMD ["npm", "run", "start"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue