Update Dockerfile
Browse files- Dockerfile +9 -13
Dockerfile
CHANGED
@@ -1,13 +1,9 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
ENV
|
8 |
-
|
9 |
-
|
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"]
|
|
|
|
|
|
|
|