Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 738947c

Browse files
feat: docker compose support (#294)
* chore: Add Docker and Docker Compose support * overridea command in compose
1 parent b2a7719 commit 738947c

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.dockerignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/.cache
12+
**/*.*proj.user
13+
**/*.dbmdl
14+
**/*.jfm
15+
**/charts
16+
**/docker-compose*
17+
**/compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
**/build
25+
**/dist
26+
LICENSE
27+
README.md

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:18
2+
LABEL org.opencontainers.image.source https://github.com/eddiehubcommunity/EddieHubCommunity.github.io
3+
WORKDIR /usr/src/app
4+
5+
COPY package*.json ./
6+
RUN npm ci --omit=dev --ignore-scripts
7+
COPY . .
8+
9+
RUN npm run build
10+
11+
CMD ["npm", "start"]

compose.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: "3.9"
2+
3+
services:
4+
website:
5+
container_name: eddiehub-website
6+
restart: always
7+
build:
8+
context: .
9+
dockerfile: Dockerfile
10+
image: eddiehub-website-image
11+
command: npm run dev
12+
ports:
13+
- "3000:3000"
14+
volumes:
15+
- ./src:/usr/src/app/src
16+
- /usr/src/app/node_modules

0 commit comments

Comments
 (0)