Skip to content

Commit

Permalink
SpotifyPlayList-dev-014-fix-docker-for-ubuntu (#177)
Browse files Browse the repository at this point in the history
* update FE dockerfile

* fix FE dockerfile

* fix FE dockerfile
  • Loading branch information
yennanliu authored Oct 2, 2024
1 parent 40ac778 commit afe5dfd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions springSpotifyPlayList/frontend/spotify-playlist-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ WORKDIR /app
COPY package*.json ./

# Install dependencies
RUN npm install
RUN npm install && npm install vue-cli-service && npm install --save-dev @vue/cli-service

# Output installed dependencies for debugging purposes
RUN npm list

# Copy the rest of the application code to the working directory
COPY . .

# Expose port 8080 to the outside world
EXPOSE 8080

# Command to run the application
#CMD ["npm", "run", "serve"]
# Debugging step: Run a simple command to keep the container alive for inspection
#CMD ["npm", "run", "serve"]
#CMD ["tail", "-f", "/dev/null"]

CMD ["npm", "run", "serve"]

0 comments on commit afe5dfd

Please sign in to comment.