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