Skip to content

Commit

Permalink
Fix(CI): Update dockerfile add missing build command before preview
Browse files Browse the repository at this point in the history
  • Loading branch information
kanchansapkota27 committed Jun 16, 2024
1 parent 5f618be commit 7ac1234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ RUN npm install
# Copy the rest of the application code
COPY . .


# Build the files for preview
RUN npm run build

# Expose the port that Vite uses
EXPOSE 8080


# Start the application
CMD ["npm", "run", "preview"]
2 changes: 1 addition & 1 deletion frontend/src/api/client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import pocketbaseEs from "pocketbase";

const API_URL='http://127.0.0.1:8090'
const API_URL='http://0.0.0.0:8090'

const client=new pocketbaseEs(API_URL);

Expand Down

0 comments on commit 7ac1234

Please sign in to comment.