Deploy to now as docker type

pull/298/head
Amio 2019-07-12 16:18:18 +08:00
rodzic 26c3130e70
commit 4aee8467cf
3 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1,11 +1,11 @@
FROM node:alpine AS build
WORKDIR /
WORKDIR /src
COPY . .
RUN npm ci && npm run build
FROM node:alpine
WORKDIR /app
COPY --from=build /dist .
COPY --from=build /src/dist .
ENTRYPOINT node /app/index.js
COPY package* ./

Wyświetl plik

@ -1,6 +1,6 @@
{
"version": 1,
"type": "npm",
"type": "docker",
"alias": [
"badgen.net",
"flat.badgen.net"
@ -10,6 +10,7 @@
"package-lock.json",
"server.tsconfig.json",
"tsconfig.json",
"next-env.d.ts",
"next.config.js",
"index.ts",
"tools",

Wyświetl plik

@ -6,9 +6,9 @@
"private": true,
"scripts": {
"lint": "standard && standard *.ts",
"build-api": "tsc -p server.tsconfig.json",
"build-web": "next build && next export -o dist",
"build": "npm run tools && npm run build-web && npm run build-api",
"build:api": "tsc -p server.tsconfig.json",
"build:web": "next build && next export -o dist",
"build": "npm run tools && npm run build:web && npm run build:api",
"dev": "npm run build && npm run dev:api",
"dev:api": "nodemon --config nodemon.json index.ts",
"dev:web": "next",