Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Jun 5, 2024
1 parent 3e59337 commit 8b0e354
Show file tree
Hide file tree
Showing 10 changed files with 2,217 additions and 2,194 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.dockerignore
Dockerfile
.git
.github
.kontinuous
Expand All @@ -8,3 +7,6 @@ Dockerfile
*.md
**/node_modules
**/.next/cache
**/Dockerfile
**/build
**/.strapi
6 changes: 0 additions & 6 deletions .kontinuous/config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
projectName: ozensemble
ciNamespace: ci-ozensemble

dependencies:
fabrique:
extends:
- name: ovh
- name: buildkit-service
Empty file removed .socialgouv.yaml
Empty file.
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

File renamed without changes.
894 changes: 894 additions & 0 deletions api/.yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions .yarnrc.yml → api/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
nodeLinker: node-modules

plugins:
- checksum: 240d225dd5bf1e25068497140ced7a3b7658a4c3754c08ea57162c9fe3335d757af0eae55555f96150a3015cdd0337852401f3fae69c1edd05221cb32f038d8c
path: .yarn/plugins/@yarnpkg/plugin-fetch.cjs
spec: "https://codeberg.org/devthefuture/yarn-plugin-fetch/raw/branch/master/bundles/@yarnpkg/plugin-fetch.js"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
27 changes: 27 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:20 as builder
WORKDIR /app
ENV NODE_ENV=production

COPY yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
RUN yarn fetch --immutable

COPY . .

RUN yarn build && \
yarn workspaces focus --all --production

FROM node:20 as runner
WORKDIR /app
ENV NODE_ENV=production

COPY --chown=node:node .yarnrc.yml package.json yarn.lock ./
COPY --chown=node:node .yarn .yarn
COPY --chown=node:node public ./public
COPY --from=builder --chown=node:node /app/node_modules ./node_modules
COPY --from=builder --chown=node:node /app/build ./build
COPY --from=builder --chown=node:node /app/.strapi ./strapi

USER node
EXPOSE 1337
CMD [ "yarn", "start" ]
3 changes: 2 additions & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
},
"strapi": {
"uuid": "d2ae4cae-6864-48e2-ae15-15608fd2cf86"
}
},
"packageManager": "[email protected]"
}
2,580 changes: 1,290 additions & 1,290 deletions api/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 8b0e354

Please sign in to comment.