summaryrefslogtreecommitdiff
path: root/storefront
diff options
context:
space:
mode:
authorertopogo <erwin.t.pombett@gmail.com>2026-01-18 23:18:36 +0100
committerertopogo <erwin.t.pombett@gmail.com>2026-01-18 23:18:36 +0100
commite0c9c32c60b67dc34a18f5a93209393e7abc8660 (patch)
tree73ce807582f2b85c377537fa8a58cd5ac59ce4c5 /storefront
parente01100156ffddfb4975e1aa7518744c2f0e3801a (diff)
docs: ajoute la doc et les commandes pour corriger les erreurs Docker
- met à jour INSTALLATION.md - ajuste le Dockerfile et la config Next.js - ajoute le dossier public (gitkeep)
Diffstat (limited to 'storefront')
-rw-r--r--storefront/Dockerfile2
-rw-r--r--storefront/next.config.js1
-rw-r--r--storefront/public/.gitkeep1
3 files changed, 3 insertions, 1 deletions
diff --git a/storefront/Dockerfile b/storefront/Dockerfile
index b6c1da8..b3f5cb8 100644
--- a/storefront/Dockerfile
+++ b/storefront/Dockerfile
@@ -2,7 +2,7 @@
FROM node:18-alpine AS deps
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* ./
-RUN npm ci
+RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
# Rebuild the source code only when needed
FROM node:18-alpine AS builder
diff --git a/storefront/next.config.js b/storefront/next.config.js
index 255e46c..304baa3 100644
--- a/storefront/next.config.js
+++ b/storefront/next.config.js
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
+ output: "standalone",
images: {
domains: ["localhost", "medusa-public-images.s3.eu-west-1.amazonaws.com"],
},
diff --git a/storefront/public/.gitkeep b/storefront/public/.gitkeep
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/storefront/public/.gitkeep
@@ -0,0 +1 @@
+