Final commit
This commit is contained in:
parent
91fffb3294
commit
c35e0716af
372 changed files with 16591 additions and 1 deletions
21
frontend/Dockerfile
Normal file
21
frontend/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Use the Node alpine official image
|
||||
# https://hub.docker.com/_/node
|
||||
FROM node:lts-alpine
|
||||
|
||||
# Create and change to the app directory.
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the files to the container image
|
||||
COPY frontend/package*.json ./
|
||||
|
||||
# Install packages
|
||||
RUN npm ci
|
||||
|
||||
# Copy local code to the container image.
|
||||
COPY frontend/ ./
|
||||
|
||||
# Build the app.
|
||||
RUN npm run build
|
||||
|
||||
# Serve the app
|
||||
CMD ["npm", "run", "start"]
|
Loading…
Add table
Add a link
Reference in a new issue