fix(docker): docker image

This commit is contained in:
diced 2021-08-21 14:57:54 -07:00
parent f37b4bb2ee
commit dacf13e46d
No known key found for this signature in database
GPG key ID: 85AB64C74535D76E
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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);