forked from thomasKn/astro-shopify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 590 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
FROM node:20-slim as build
ARG BUN_VERSION=1.0.15
WORKDIR /build
# Install Bun in the specified version
RUN apt update && apt install -y bash curl unzip && \
curl https://bun.sh/install | bash -s -- bun-v${BUN_VERSION}
ENV PATH="${PATH}:/root/.bun/bin"
#
# Copy the lock file and app manifest, then install
# the dependencies, including the dev dependencies
#
COPY bun.lockb package.json ./
# Copy the application sources into the build stage
COPY . .
COPY .env /app/
RUN bun install
RUN bun run build
ENV HOST=0.0.0.0
ENV PORT=8080
EXPOSE 8080
CMD node ./dist/server/entry.mjs