mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Remove prestart script.
This commit is contained in:
parent
f2d17996eb
commit
a4e2e46834
11
Dockerfile
11
Dockerfile
@ -1,10 +1,5 @@
|
|||||||
# Build-time variables
|
|
||||||
ARG NODE_VERSION=16
|
|
||||||
ARG ALPINE_VERSION=3.15
|
|
||||||
|
|
||||||
|
|
||||||
# Build image
|
# Build image
|
||||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS build
|
FROM node:12.22-alpine AS build
|
||||||
ARG BASE_PATH
|
ARG BASE_PATH
|
||||||
ARG DATABASE_TYPE
|
ARG DATABASE_TYPE
|
||||||
|
|
||||||
@ -30,9 +25,8 @@ COPY . /build
|
|||||||
RUN yarn next telemetry disable
|
RUN yarn next telemetry disable
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
|
||||||
# Production image
|
# Production image
|
||||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS production
|
FROM node:12.22-alpine AS production
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy cached dependencies
|
# Copy cached dependencies
|
||||||
@ -44,7 +38,6 @@ COPY --from=build /build/node_modules/.prisma/ ./node_modules/.prisma/
|
|||||||
COPY --from=build /build/yarn.lock /build/package.json ./
|
COPY --from=build /build/yarn.lock /build/package.json ./
|
||||||
COPY --from=build /build/.next ./.next
|
COPY --from=build /build/.next ./.next
|
||||||
COPY --from=build /build/public ./public
|
COPY --from=build /build/public ./public
|
||||||
COPY --from=build /build/scripts ./scripts
|
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "npm-run-all build-tracker build-geo build-db build-app",
|
"build": "npm-run-all build-tracker build-geo build-db build-app",
|
||||||
"start": "npm-run-all pre-start start-app",
|
"start": "next start",
|
||||||
"start-app": "next start",
|
|
||||||
"start-env": "node -r dotenv/config scripts/start-env.js",
|
"start-env": "node -r dotenv/config scripts/start-env.js",
|
||||||
"build-app": "next build",
|
"build-app": "next build",
|
||||||
"build-tracker": "rollup -c rollup.tracker.config.js",
|
"build-tracker": "rollup -c rollup.tracker.config.js",
|
||||||
@ -38,8 +37,7 @@
|
|||||||
"change-password": "node scripts/change-password.js",
|
"change-password": "node scripts/change-password.js",
|
||||||
"lint": "next lint --quiet",
|
"lint": "next lint --quiet",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"postbuild": "node scripts/postbuild.js",
|
"postbuild": "node scripts/postbuild.js"
|
||||||
"pre-start": "node scripts/prestart.js"
|
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"**/*.js": [
|
"**/*.js": [
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
require('dotenv').config();
|
|
||||||
const { sendTelemetry } = require('./telemetry');
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
if (!process.env.DISABLE_TELEMETRY) {
|
|
||||||
await sendTelemetry('start');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
Loading…
Reference in New Issue
Block a user