forked from noxious/client
Finished caprover deploy script?
This commit is contained in:
parent
95d28a0b99
commit
314730bf4b
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Build stage
|
||||||
|
FROM node:22.4.1-alpine as builder
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build-ntc
|
||||||
|
|
||||||
|
# Production stage
|
||||||
|
FROM nginx:1.26.1-alpine
|
||||||
|
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
@ -1,15 +1,4 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 2,
|
"schemaVersion": 2,
|
||||||
"dockerfileLines": [
|
"dockerfilePath" :"./Dockerfile"
|
||||||
"FROM node:22.4.1-alpine as builder",
|
|
||||||
"RUN mkdir -p /usr/src/app",
|
|
||||||
"WORKDIR /usr/src/app",
|
|
||||||
"COPY ./ /usr/src/app",
|
|
||||||
"RUN npm install && npm run build-ntc",
|
|
||||||
|
|
||||||
"FROM nginx:alpine",
|
|
||||||
"COPY --from=builder /usr/src/app/dist /usr/share/nginx/html",
|
|
||||||
"EXPOSE 80",
|
|
||||||
"CMD [\"nginx\", \"-g\", \"daemon off;\"]"
|
|
||||||
]
|
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'New Quest',
|
name: 'New Quest',
|
||||||
server_endpoint: 'https://nq-server.cr-a.directonline.io:4000',
|
server_endpoint: 'https://nq-server.cr-a.directonline.io:80',
|
||||||
development: true,
|
development: true,
|
||||||
width: 960,
|
width: 960,
|
||||||
height: 540,
|
height: 540,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user