From 0f5660e8f0f45e2b9c8a2435a24fecb0d159ce25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Thu, 2 Nov 2023 14:09:18 +0100 Subject: [PATCH] docker changes --- apps/web/Dockerfile | 4 ++-- build_docker | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index bd2400cc..4be2fa2e 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-slim AS base +FROM --platform=linux/amd64 node:20-slim AS base ARG DATABASE_URL ENV DATABASE_URL=$DATABASE_URL @@ -15,7 +15,7 @@ ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable -ARG NODE_VERSION=18 +ARG NODE_VERSION=20 RUN apt update \ && apt install -y curl \ diff --git a/build_docker b/build_docker index c81b9ea4..7f5f03f9 100755 --- a/build_docker +++ b/build_docker @@ -4,6 +4,7 @@ docker build \ --build-arg DATABASE_URL="postgresql://local@host.docker.internal:5432/mixan?schema=public" \ --build-arg NEXTAUTH_SECRET="secret_sauce" \ --build-arg NEXTAUTH_URL="http://localhost:3000" \ + -t mixan/app:latest \ -t mixan/app:1.0 \ -f apps/web/Dockerfile \ . \ No newline at end of file