-
Notifications
You must be signed in to change notification settings - Fork 10
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
12 additions
and
6 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM node:18-alpine | ||
ARG NODE_VERSION=18 | ||
|
||
LABEL maintainer="S. Ali Mihandoost <[email protected]>" | ||
FROM node:${NODE_VERSION}-alpine | ||
|
||
ENV NODE_ENV production | ||
LABEL maintainer="S. Ali Mihandoost <[email protected]>" | ||
|
||
WORKDIR /app | ||
|
||
|
@@ -11,9 +11,15 @@ WORKDIR /app | |
|
||
COPY package.json ./ | ||
|
||
RUN yarn install --frozen-lockfile --production=true --non-interactive | ||
RUN yarn install --frozen-lockfile --non-interactive | ||
|
||
COPY dist . | ||
COPY . . | ||
|
||
RUN yarn build | ||
|
||
ENV PORT 80 | ||
ENV TOKEN ${STORAGE_TOKEN} | ||
ENV NODE_ENV production | ||
|
||
EXPOSE 80 | ||
|
||
|
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