Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ignore the vendor directory if using Go modules
/vendor

# Ignore git files and directories
.git
.gitignore

# Ignore the binary if it's present
*.exe
*.out
*.o
*.a

# Ignore local environment files to prevent sensitive data from being copied into the image
.env
.env.local
.env.*.local

# Ignore Dockerfile itself and docker-compose files
Dockerfile
docker-compose.yml

14 changes: 14 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.23-alpine

WORKDIR /app

COPY go.mod ./
COPY go.sum ./

RUN go mod download

COPY . .

EXPOSE 1313

CMD ["sh", "-c", "exec go run cmd/server/main.go"]
18 changes: 18 additions & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Ignore node_modules to avoid copying them to the Docker image
node_modules

# Ignore git files and directories
.git
.gitignore

# Ignore build output (if using Vite's build directory)
dist

# Ignore local environment files to prevent sensitive data from being copied into the image
.env
.env.local
.env.*.local

# Ignore Dockerfile itself and docker-compose files
Dockerfile
docker-compose.yml
13 changes: 13 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 5173

CMD ["npm", "run", "dev", "--", "--host"]