Skip to content

Commit

Permalink
update README, remove comments from Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikmonsen committed Nov 11, 2024
1 parent 680580b commit 22ed8b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NEXT_PUBLIC_BASE_PATH=/ammo
NEXT_PUBLIC_IMAGE_API_PATH=http://localhost:3000
CATALOG_API_PATH=http://localhost:3000
CATALOG_API_PATH=http://localhost:3000
DATABASE_URL=file:../db/ammo.db
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ COPY . .

ENV NEXT_TELEMETRY_DISABLED=1

# RUN mkdir -p /app/db
RUN npx prisma generate
COPY prisma ./prisma/
# If the /app/db/ammo.db file does not exist, generate it.
#RUN test -f /app/db/ammo.db || npx prisma db push

RUN npm run build

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cp .env.example .env.local
| NEXT_PUBLIC_IMAGE_API_PATH | _N/A_ | Sti til bilde-APIet |
| AUTH_API_PATH | _N/A_ | Sti til autentiserings-APIet |
| CATALOG_API_PATH | http://localhost:8087/bikube | Sti til [katalog APIet ](https://github.com/NationalLibraryOfNorway/bikube)<br/>Må starte med `http://` eller `https://` |
| DATABASE_URL | file:../db/ammo.db | Sti til databasefil (SQLite database) |

Appen bruker SQLite for å holde orden på hvilke objekter som er låst til ulike brukere.
AMMO bruker Prisma som ORM for å kommunisere med databasen.
Expand Down

0 comments on commit 22ed8b2

Please sign in to comment.