-
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.
working dockerfile for project mariupol
- Loading branch information
1 parent
40d96e8
commit e44730c
Showing
1 changed file
with
10 additions
and
14 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,14 +1,10 @@ | ||
FROM mhart/alpine-node:10.11 | ||
|
||
LABEL authors="Lachlan Kermode <[email protected]>" | ||
|
||
# Install app dependencies | ||
COPY package.json /www/package.json | ||
RUN cd /www; yarn | ||
|
||
# Copy app source | ||
COPY . /www | ||
WORKDIR /www | ||
RUN yarn build | ||
|
||
# files available to copy at /www/build | ||
FROM node:20-alpine | ||
WORKDIR /app | ||
COPY package.json ./package.json | ||
COPY package-lock.json ./package-lock.json | ||
COPY --chown=node:node . /app | ||
RUN npm install | ||
RUN npm run build | ||
EXPOSE 8080 | ||
USER node | ||
CMD [ "npm", "run", "serve"] |