dcrey7 commited on
Commit
df7dcea
·
verified ·
1 Parent(s): 811126d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -13
Dockerfile CHANGED
@@ -1,13 +1,9 @@
1
- # Use the official PostgreSQL image from the Docker Hub
2
- FROM postgres:latest
3
-
4
- # Set environment variables for PostgreSQL
5
- ENV POSTGRES_USER=postgres
6
- ENV POSTGRES_PASSWORD=goat
7
- ENV POSTGRES_DB=postgres
8
-
9
- # Expose the PostgreSQL port
10
- # Expose the PostgreSQL port
11
- EXPOSE 5432
12
-
13
- # The init.sql file should contain the SQL commands to create the schema
 
1
+ FROM oven/bun:1
2
+ WORKDIR /app
3
+ COPY package*.json .
4
+ COPY bun.lockb .
5
+ RUN bun install
6
+ COPY . .
7
+ ENV DATABASE_URL=${DATABASE_URL}
8
+ EXPOSE 7860
9
+ CMD ["bun", "run", "src/index.ts"]