Skip to content

Commit

Permalink
working dockerfile for project mariupol
Browse files Browse the repository at this point in the history
  • Loading branch information
atrzaskowski-neos committed May 20, 2024
1 parent 40d96e8 commit e44730c
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions Dockerfile
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"]

0 comments on commit e44730c

Please sign in to comment.