-
Notifications
You must be signed in to change notification settings - Fork 0
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
3 changed files
with
10 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.12.2 |
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,24 +1,15 @@ | ||
ARG NODE_VERSION | ||
FROM node:${NODE_VERSION} | ||
|
||
RUN apk --no-cache add git | ||
WORKDIR /app | ||
RUN corepack enable | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app/.nuxt | ||
WORKDIR /usr/src/app | ||
|
||
# Install app dependencies | ||
COPY package.json yarn.lock /usr/src/app/ | ||
RUN yarn install | ||
RUN yarn add -D serve | ||
COPY . /usr/src/app | ||
COPY package.json yarn.lock /app/ | ||
RUN yarn install | ||
RUN yarn generate | ||
|
||
# Set environment variables | ||
ENV NODE_ENV production | ||
ENV NUXT_HOST 0.0.0.0 | ||
ENV NUXT_PORT 3000 | ||
COPY . . | ||
RUN yarn install | ||
RUN yarn build | ||
|
||
EXPOSE 3000 | ||
CMD [ "yarn", "start" ] | ||
CMD [ "node", ".output/server/index.mjs" ] |
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