Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d8539c

Browse files
Updated Dockerfile for client
1 parent bacfdc2 commit 9d8539c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules/
22
docker_test_db/
3-
.env
3+
*/.env

‎client/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ FROM node:18
22
ARG VITE_SERVER_URL=http://127.0.0.1:7999
33
ENV VITE_SERVER_URL=$VITE_SERVER_URL
44
WORKDIR /client
5-
COPY package.json ./
6-
COPY package-lock.json ./
7-
COPY . .
5+
COPY public/ /client/public
6+
COPY src/ /client/src
7+
COPY index.html /client/
8+
COPY package.json /client/
9+
COPY vite.config.js /client/
810
RUN npm install
911
RUN npm run build
1012
CMD ["npm", "run", "preview"]

‎docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ services:
88
POSTGRES_USER: "${POSTGRES_USER}"
99
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
1010
POSTGRES_DB: ${POSTGRES_DB}
11-
command: bash -c "npm run preview"
1211
volumes:
1312
- ./docker_test_db:/var/lib/postgresql/data
1413
healthcheck:
@@ -24,7 +23,7 @@ services:
2423
dockerfile: Dockerfile
2524
ports:
2625
- "7999:8000"
27-
command: bash -c "npx prisma migrate dev && npx prisma db seed && npm start"
26+
command: bash -c "npx prisma migrate reset --force && npm start"
2827
environment:
2928
DATABASE_URL: "${DATABASE_URL}"
3029
PORT: "${PORT}"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /