Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Oct 25, 2023
1 parent 2c2a958 commit befb956
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 342 deletions.
1 change: 0 additions & 1 deletion .env.docker

This file was deleted.

Empty file removed .husky/.gitignore
Empty file.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd ./app/client && npx --no -- commitlint --edit ${1}
npx --no -- commitlint --edit ${1}
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd ./app/client && pnpm lint
pnpm lint

This file was deleted.

108 changes: 0 additions & 108 deletions apps/goat/app/[lng]/(dashboard)/settings/settings/Profile.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/goat/app/[lng]/(dashboard)/settings/settings/layout.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/goat/public/assets/poi-icons/circle.svg

This file was deleted.

3 changes: 0 additions & 3 deletions apps/goat/public/assets/poi-icons/star.svg

This file was deleted.

12 changes: 11 additions & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN apk update
WORKDIR /app
RUN npm install -g turbo
COPY . .
COPY .env.docker /app/apps/web/.env
RUN turbo prune --scope=@p4b/web --docker

# Add lockfile and package.json's of isolated subworkspace
Expand All @@ -24,9 +23,18 @@ RUN pnpm install --frozen-lockfile

# Build the project
COPY --from=builder /app/out/full/ .

ARG NEXT_PUBLIC_APP_URL=APP_NEXT_PUBLIC_APP_URL
ARG NEXT_PUBLIC_MAP_TOKEN=APP_NEXT_PUBLIC_MAP_TOKEN
ARG NEXT_PUBLIC_ACCOUNTS_API_URL=APP_NEXT_PUBLIC_ACCOUNTS_API_URL
ARG NEXT_PUBLIC_GEOAPI_URL=APP_NEXT_PUBLIC_GEOAPI_URL
ARG NEXT_PUBLIC_API_URL=APP_NEXT_PUBLIC_API_URL

RUN pnpm dlx turbo run build --filter=web

FROM base AS runner
RUN apk add bash

WORKDIR /app

# Don't run production as root
Expand All @@ -45,4 +53,6 @@ COPY --from=installer --chown=nextjs:nodejs /app/apps/web/public ./apps/web/publ

ENV HOSTNAME localhost

COPY ./apps/web/entrypoint.sh /app/apps/web/entrypoint.sh
ENTRYPOINT ["/app/apps/web/entrypoint.sh"]
CMD node apps/web/server.js
4 changes: 2 additions & 2 deletions apps/web/components/dashboard/common/FoldersTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function FoldersTreeView(props: FoldersTreeViewProps) {

setEditModal(undefined);
}}
existingFolderNames={folders?.items?.map((folder) => folder.name)}
existingFolderNames={folders?.map((folder) => folder.name)}
selectedFolder={editModal?.selectedFolder}
/>

Expand All @@ -138,7 +138,7 @@ export default function FoldersTreeView(props: FoldersTreeViewProps) {
component="nav"
aria-labelledby="content-tree-view"
>
{[folders?.items ?? [], teams ?? [], organizations ?? []].map(
{[folders ?? [], teams ?? [], organizations ?? []].map(
(folder, typeIndex) => (
<div key={typeIndex}>
<ListItemButton
Expand Down
Loading

0 comments on commit befb956

Please sign in to comment.