From 58b4363e8650bfc354c2c336f8888362d1f0caa5 Mon Sep 17 00:00:00 2001 From: Ho3einWave Date: Wed, 6 Nov 2024 15:43:02 +0330 Subject: [PATCH] fix: update Dockerfile and docker-compose for dynamic port mapping --- Dockerfile | 1 - docker-compose.yml | 2 +- package.json | 90 +++++++++++++++++++++++----------------------- 3 files changed, 46 insertions(+), 47 deletions(-) diff --git a/Dockerfile b/Dockerfile index e58b4c1..4729d64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM node:lts as base - ENV FORCE_COLOR=0 RUN npm install -g pnpm diff --git a/docker-compose.yml b/docker-compose.yml index 75537c6..db4652f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: dockerfile: Dockerfile container_name: mytonswap_docs ports: - - ${PORT}:3000 + - ${PORT}:${PORT} env_file: - .env networks: diff --git a/package.json b/package.json index baec7e0..6808a3d 100644 --- a/package.json +++ b/package.json @@ -1,47 +1,47 @@ { - "name": "my-ton-swap-documents", - "version": "0.0.0", - "private": true, - "scripts": { - "docusaurus": "docusaurus", - "start": "docusaurus start", - "build": "docusaurus build", - "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy", - "clear": "docusaurus clear", - "serve": "docusaurus serve", - "write-translations": "docusaurus write-translations", - "write-heading-ids": "docusaurus write-heading-ids", - "typecheck": "tsc" - }, - "dependencies": { - "@docusaurus/core": "3.6.0", - "@docusaurus/preset-classic": "3.6.0", - "@mdx-js/react": "^3.0.0", - "clsx": "^2.0.0", - "prism-react-renderer": "^2.3.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, - "devDependencies": { - "@docusaurus/module-type-aliases": "3.6.0", - "@docusaurus/tsconfig": "3.6.0", - "@docusaurus/types": "3.6.0", - "typescript": "~5.6.2" - }, - "browserslist": { - "production": [ - ">0.5%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 3 chrome version", - "last 3 firefox version", - "last 5 safari version" - ] - }, - "engines": { - "node": ">=18.0" - } + "name": "my-ton-swap-documents", + "version": "0.0.0", + "private": true, + "scripts": { + "docusaurus": "docusaurus", + "start": "docusaurus start", + "build": "docusaurus build", + "swizzle": "docusaurus swizzle", + "deploy": "docusaurus deploy", + "clear": "docusaurus clear", + "serve": "docusaurus serve", + "write-translations": "docusaurus write-translations", + "write-heading-ids": "docusaurus write-heading-ids", + "typecheck": "tsc" + }, + "dependencies": { + "@docusaurus/core": "3.6.0", + "@docusaurus/preset-classic": "3.6.0", + "@mdx-js/react": "^3.0.0", + "clsx": "^2.0.0", + "prism-react-renderer": "^2.3.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, + "devDependencies": { + "@docusaurus/module-type-aliases": "3.6.0", + "@docusaurus/tsconfig": "3.6.0", + "@docusaurus/types": "3.6.0", + "typescript": "~5.6.2" + }, + "browserslist": { + "production": [ + ">0.5%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 3 chrome version", + "last 3 firefox version", + "last 5 safari version" + ] + }, + "engines": { + "node": ">=18.0" + } }