mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-07-15 05:40:36 -04:00
feat: dockerfiles
This commit is contained in:
parent
8398636f01
commit
7d149f5130
8 changed files with 44 additions and 3 deletions
14
memory-game/mg-frontend/Dockerfile
Normal file
14
memory-game/mg-frontend/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM node:18 as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . ./
|
||||
RUN npm install
|
||||
ENV NODE_ENV production
|
||||
RUN npm app build
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
Loading…
Add table
Add a link
Reference in a new issue