Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Nov 19, 2023
1 parent 7c50705 commit 545dffa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ COPY --chown=node:node --from=build /app/.npmrc /app/package.json /app/pnpm-lock
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile

COPY --chown=node:node --from=build /app/dist ./dist

COPY --chown=node:node --from=build /app/tools/prisma ./tools/prisma
RUN pnpm run prisma:generate

COPY --chown=node:node --from=build /app/lingui.config.ts ./lingui.config.ts
RUN pnpm run messages:compile

EXPOSE 3000
Expand Down
34 changes: 18 additions & 16 deletions .linguirc → lingui.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"format": "po",
"sourceLocale": "en-US",
"compileNamespace": "es",
"fallbackLocales": {
"default": "en-US"
import type { LinguiConfig } from "@lingui/conf";

const config: LinguiConfig = {
format: "po",
sourceLocale: "en-US",
compileNamespace: "es",
fallbackLocales: {
default: "en-US",
},
"locales": [
locales: [
"af-ZA",
"am-ET",
"ar-SA",
Expand Down Expand Up @@ -51,14 +53,14 @@
"uk-UA",
"vi-VN",
"zh-CN",
"zh-TW"
"zh-TW",
],
"catalogs": [
catalogs: [
{
"include": [
"<rootDir>/apps/client/src"
],
"path": "<rootDir>/apps/client/src/locales/{locale}/messages"
}
]
}
include: ["<rootDir>/apps/client/src"],
path: "<rootDir>/apps/client/src/locales/{locale}/messages",
},
],
};

export default config;

0 comments on commit 545dffa

Please sign in to comment.