remove unecessary exposed port

This commit is contained in:
gabrielkheisa 2024-04-07 17:23:48 +07:00
parent 5b41c99602
commit a5234c7904
2 changed files with 1 additions and 4 deletions

View File

@ -22,8 +22,5 @@ WORKDIR /usr/src/app
# Copy the built artifacts from the builder stage to the production stage # Copy the built artifacts from the builder stage to the production stage
COPY --from=builder /usr/src/app . COPY --from=builder /usr/src/app .
# Expose the port the app runs on
EXPOSE 3000
# Command to run the application in the production stage # Command to run the application in the production stage
CMD ["node", "index.js"] CMD ["node", "index.js"]

View File

@ -46,7 +46,7 @@ docker build -t discord-badge .
``` ```
3. Run the container and insert your Discord bot token 3. Run the container and insert your Discord bot token
```bash ```bash
docker run -it -p 3000:3000 discord-badge docker run -it discord-badge
``` ```
4. Jump directly to step 12 and follow the remaining steps from the main instruction 4. Jump directly to step 12 and follow the remaining steps from the main instruction