-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
31 lines (25 loc) · 961 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use the official Bun image
FROM oven/bun:1
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json (if available)
COPY package*.json ./
# Install dependencies
RUN bun install
# Copy the rest of your app's source code
COPY . .
RUN echo "VITE_ACCESS_KEY=$VITE_ACCESS_KEY" >> ./client/.env
RUN echo "VITE_ACCESS_TOKEN_SECRET=$VITE_ACCESS_TOKEN_SECRET" >> ./client/.env
RUN echo "VITE_TMDB_API=$VITE_TMDB_API" >> ./client/.env
RUN echo "VITE_API_KEY=$VITE_API_KEY" >> ./client/.env
RUN echo "VITE_AUTH_DOMAIN=$VITE_AUTH_DOMAIN" >> ./client/.env
RUN echo "VITE_PROJECT_ID=$VITE_PROJECT_ID" >> ./client/.env
RUN echo "VITE_STORAGE_BUCKET=$VITE_STORAGE_BUCKET" >> ./client/.env
RUN echo "VITE_MESSAGING_SENDER_ID=$VITE_MESSAGING_SENDER_ID" >> ./client/.env
RUN echo "VITE_APP_ID=$VITE_APP_ID" >> ./client/.env
# Build your app
RUN bun run build
# Expose the port your app runs on
EXPOSE 8080
# Start the app
CMD [ "bun", "run", "start" ]