refactor(Dockerfile): change COPY command to copy client side code from /client/dist instead of /client/public

refactor(Dockerfile): change port number from 3080 to 80
refactor(Dockerfile): remove unnecessary EXPOSE command
refactor(package.json): remove devDependencies for Vite and React plugin
This commit is contained in:
Daniel Avila 2023-04-02 00:00:49 -04:00
parent b14726b2dd
commit 8bc4d5e3fd
3 changed files with 1 additions and 2196 deletions

View file

@ -18,7 +18,7 @@ RUN npm ci
# Copy the current directory contents into the container at /api
COPY /api/ /api/
# Copy the client side code
COPY --from=react-client /client/public /client/public
COPY --from=react-client /client/dist /client/dist
# Make port 3080 available to the world outside this container
EXPOSE 3080
# Expose the server to 0.0.0.0

2188
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,7 +0,0 @@
{
"devDependencies": {
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.2.1",
"vite-plugin-html": "^3.2.0"
}
}