Skip to content

Commit

Permalink
Update Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed Apr 26, 2024
1 parent 8a28234 commit dd678fa
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions apps/availability/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine@sha256:7e227295e96f5b00aa79555ae166f50610940d888fc2e321cf36304cbd17d7d6 AS base
FROM node:20-alpine@sha256:7a91aa397f2e2dfbfcdad2e2d72599f374e0b0172be1d86eeb73f1d33f36a4b2 AS base

RUN apk update && apk add --no-cache dumb-init

Expand All @@ -8,15 +8,15 @@ ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown node:node .next
RUN mkdir dist
RUN chown node:node dist

ARG APP_NAME
ENV APP_NAME=${APP_NAME}

COPY --chown=node:node .next/standalone ./
COPY --chown=node:node dist/standalone ./
COPY --chown=node:node public ./apps/${APP_NAME}/public
COPY --chown=node:node .next/static ./apps/${APP_NAME}/dist/static
COPY --chown=node:node dist/static ./apps/${APP_NAME}/dist/static

USER node

Expand Down
10 changes: 5 additions & 5 deletions apps/frontend-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine@sha256:7e227295e96f5b00aa79555ae166f50610940d888fc2e321cf36304cbd17d7d6 AS base
FROM node:20-alpine@sha256:7a91aa397f2e2dfbfcdad2e2d72599f374e0b0172be1d86eeb73f1d33f36a4b2 AS base

RUN apk update && apk add --no-cache dumb-init

Expand All @@ -8,15 +8,15 @@ ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown node:node .next
RUN mkdir dist
RUN chown node:node dist

ARG APP_NAME
ENV APP_NAME=${APP_NAME}

COPY --chown=node:node .next/standalone ./
COPY --chown=node:node dist/standalone ./
COPY --chown=node:node public ./apps/${APP_NAME}/public
COPY --chown=node:node .next/static ./apps/${APP_NAME}/dist/static
COPY --chown=node:node dist/static ./apps/${APP_NAME}/dist/static

USER node

Expand Down
2 changes: 1 addition & 1 deletion apps/infra/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
passphrase.*
kubeconfig.json
kubeconfig.yaml
4 changes: 2 additions & 2 deletions apps/infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ If you want to use your secret 'raw', import config from [config.ts](./src/confi
### Connecting with kubectl

```bash
PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi stack output --show-secrets k8sConfig > kubeconfig.json
export KUBECONFIG=$(pwd)/kubeconfig.json
PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi stack output --show-secrets k8sConfig > kubeconfig.yaml
export KUBECONFIG=$(pwd)/kubeconfig.yaml
```

## Things we set up manually
Expand Down
10 changes: 5 additions & 5 deletions apps/meet/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine@sha256:7e227295e96f5b00aa79555ae166f50610940d888fc2e321cf36304cbd17d7d6 AS base
FROM node:20-alpine@sha256:7a91aa397f2e2dfbfcdad2e2d72599f374e0b0172be1d86eeb73f1d33f36a4b2 AS base

RUN apk update && apk add --no-cache dumb-init

Expand All @@ -8,15 +8,15 @@ ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown node:node .next
RUN mkdir dist
RUN chown node:node dist

ARG APP_NAME
ENV APP_NAME=${APP_NAME}

COPY --chown=node:node .next/standalone ./
COPY --chown=node:node dist/standalone ./
COPY --chown=node:node public ./apps/${APP_NAME}/public
COPY --chown=node:node .next/static ./apps/${APP_NAME}/dist/static
COPY --chown=node:node dist/static ./apps/${APP_NAME}/dist/static

USER node

Expand Down

0 comments on commit dd678fa

Please sign in to comment.