-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
FROM node:18-alpine | ||
RUN apk add --no-cache libc6-compat git python3 py3-pip make g++ libusb-dev eudev-dev linux-headers | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy root | ||
COPY . . | ||
|
||
# Set working directory to the web app | ||
WORKDIR apps/web | ||
|
||
# Enable corepack and configure yarn | ||
RUN corepack enable | ||
# Fix arm64 timeouts | ||
RUN yarn config set httpTimeout 300000 | ||
|
||
# install deps | ||
# Run any custom post-install scripts | ||
RUN yarn install --immutable | ||
RUN yarn after-install | ||
|
||
# Set environment variables | ||
ENV NODE_ENV production | ||
|
||
# Next.js collects completely anonymous telemetry data about general usage. | ||
# Learn more here: https://nextjs.org/telemetry | ||
# Uncomment the following line in case you want to disable telemetry during the build. | ||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV PORT 3000 | ||
|
||
# Expose the port | ||
EXPOSE 3000 | ||
|
||
ENV PORT 3000 | ||
|
||
CMD ["yarn", "static-serve"] | ||
# Command to start the application | ||
CMD ["yarn", "static-serve"] |