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:
@@ -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
2188
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-react": "^3.1.0",
|
||||
"vite": "^4.2.1",
|
||||
"vite-plugin-html": "^3.2.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user