diff options
| author | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
|---|---|---|
| committer | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
| commit | 09a949092c59856962e4a7d132bc5a5e76fe5e55 (patch) | |
| tree | 990d6b8f24ff9c6dbc0fcb15b5512067d09b17fd /backend/Dockerfile | |
Initial commit: Medusa Backend + storefront + config
Diffstat (limited to 'backend/Dockerfile')
| -rw-r--r-- | backend/Dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..6775ba5 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,21 @@ +FROM node:18-alpine
+
+WORKDIR /app/medusa
+
+COPY package.json .
+COPY yarn.lock* ./
+COPY package-lock.json* ./
+
+RUN npm install
+
+COPY . .
+
+# Build the project (if using TypeScript)
+RUN npm run build
+
+# Expose port
+EXPOSE 9000
+
+# Start command
+CMD ["npm", "run", "start"]
+
|
