-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from internet4000/feat/docker-compose
add docker and docker-compose files to use node.js 16 (hard dep)
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use node image as base | ||
FROM node:16 | ||
|
||
# Set working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy application logic to the container | ||
COPY package*.json ./ | ||
COPY index.html ./ | ||
COPY poi.config.js ./ | ||
|
||
# shadowed as volumes by compose | ||
COPY src ./src/ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Expose the port on which the frontend server runs | ||
EXPOSE 4002 | ||
|
||
# Command to start the development server | ||
CMD ["npm", "run", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "3.8" | ||
|
||
services: | ||
frontend: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: radio4000-player-vue | ||
hostname: radio4000-player-vue | ||
ports: | ||
- "4000:4002" | ||
volumes: | ||
- ./src:/app/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters