docker changes

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-02 14:09:18 +01:00
parent 13f27825f3
commit 0f5660e8f0
2 changed files with 3 additions and 2 deletions

View File

@@ -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 \

View File

@@ -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 \
.