Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
guzel.khuziakhmetova committed Aug 21, 2024
2 parents fa1f6b9 + d37876c commit eb0c3ba
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
# Mono auto generated files
mono_crash.*


# DB Files
*.db

# Build results
[Dd]ebug/
[Dd]ebugPublic/
Expand Down
1 change: 1 addition & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_URL=http://ping-pong-service-service.default.svc.cluster.local:8080
4 changes: 1 addition & 3 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ RUN npm install

COPY . .

ARG VITE_API_URL
ENV VITE_API_URL=$VITE_API_URL
RUN npm run build

FROM nginx:alpine

RUN rm /etc/nginx/conf.d/default.conf

WORKDIR /app
WORKDIR /usr/src/app

COPY --from=builder /usr/src/app/dist /usr/share/nginx/html

Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ services:
build:
context: ./client
dockerfile: Dockerfile
args:
- VITE_API_URL=${VITE_API_URL}
container_name: ping-pong-client
restart: unless-stopped
ports:
Expand Down
Binary file added service/src/PingPong/PingPong.db
Binary file not shown.

0 comments on commit eb0c3ba

Please sign in to comment.