Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinAdodo committed May 25, 2024
1 parent 01ee3d9 commit 8bdf89e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#FROM ubuntu:latest
#LABEL authors="mudia"
#
#ENTRYPOINT ["top", "-b"]

# Use a Node.js base image with a newer version
FROM node:18-alpine

Expand All @@ -25,14 +20,11 @@ ENV NODE_ENV=$ANGULAR_ENV
# Build the application for production
RUN if [ "$ANGULAR_ENV" = "production" ]; then npm run build -- --configuration=production; else npm run build; fi

# Add a global variable to mock the 'net' package
RUN echo "global.net = require('net');" > src/window-global-fix.ts

# Install serve to serve your app on container start
RUN npm install -g serve

# Expose the port the app runs on
EXPOSE 4200

# Command to run on container start
CMD ["serve", "-s", "build", "-l", "4200"]
CMD ["serve", "-s", "dist/the-ride-front-end", "-l", "4200"]

0 comments on commit 8bdf89e

Please sign in to comment.