fix(docker): docker image
This commit is contained in:
parent
f37b4bb2ee
commit
dacf13e46d
2 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,7 @@ COPY server ./server
|
||||||
COPY scripts ./scripts
|
COPY scripts ./scripts
|
||||||
COPY prisma/schema.shared.prisma ./prisma/schema.shared.prisma
|
COPY prisma/schema.shared.prisma ./prisma/schema.shared.prisma
|
||||||
|
|
||||||
COPY package.json yarn.lock next.config.js next-env.d.ts tsconfig.json ./
|
COPY package.json yarn.lock next.config.js next-env.d.ts zip-env.d.ts tsconfig.json ./
|
||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ module.exports = async (config) => {
|
||||||
await prismaRun(config.database.url, ['generate', `--schema=prisma/schema.${config.database.type}.prisma`]);
|
await prismaRun(config.database.url, ['generate', `--schema=prisma/schema.${config.database.type}.prisma`]);
|
||||||
await prismaRun(config.database.url, ['db', 'seed', '--preview-feature', `--schema=prisma/schema.${config.database.type}.prisma`]);
|
await prismaRun(config.database.url, ['db', 'seed', '--preview-feature', `--schema=prisma/schema.${config.database.type}.prisma`]);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
Logger.get('db').error('there was an error.. exiting..');
|
Logger.get('db').error('there was an error.. exiting..');
|
||||||
rimraf.sync(join(process.cwd(), 'prisma', 'migrations'));
|
rimraf.sync(join(process.cwd(), 'prisma', 'migrations'));
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
Loading…
Reference in a new issue