Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielguirra committed Mar 21, 2024
1 parent 708178f commit 52a8e73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules
COPY --chown=node:node --from=build /usr/src/app/dist ./dist
COPY --chown=node:node --from=build /usr/src/app/envs.json ./envs.json
COPY --chown=node:node --from=build /usr/src/app/database.sqlite ./database.sqlite
COPY --chown=node:node --from=build /usr/src/app/newbible.json ./newbible.json
COPY --chown=node:node --from=build /usr/src/app/data/json/newbible.json ./newbible.json

EXPOSE 4040

Expand Down
3 changes: 1 addition & 2 deletions util/decoderBase64ToSqlite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs');
const base64Data = ''; // Insira sua string base64 aqui

const base64Data = "";
const arquivoSQLite = 'dump_decodificado.sqlite';

const bufferData = Buffer.from(base64Data, 'base64');
Expand Down
2 changes: 1 addition & 1 deletion util/encoderToBase64Envs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const arquivoSQLite = 'envs.json';
const arquivoSQLite = '../envs.json';
fs.readFile(arquivoSQLite, (err, data) => {
if (err) {
console.error('Erro ao ler o arquivo:', err);
Expand Down
2 changes: 1 addition & 1 deletion util/encoderToBase64SqliteDump.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const arquivoSQLite = 'database.sqlite';
const arquivoSQLite = './database.sqlite';
fs.readFile(arquivoSQLite, (err, data) => {
if (err) {
console.error('Erro ao ler o arquivo:', err);
Expand Down

0 comments on commit 52a8e73

Please sign in to comment.