frontend/Dockerfile

16 lines
288 B
Text
Raw Normal View History

2023-11-12 10:20:24 +00:00
FROM docker.io/library/alpine:latest
2023-07-19 19:55:16 +00:00
# Set up environment for building
RUN apk add nodejs npm
2023-07-19 19:55:16 +00:00
2023-07-19 20:23:59 +00:00
# Copy files to build environment
2023-11-12 09:42:46 +00:00
RUN mkdir /opt/little-lines-frontend
COPY . /opt/little-lines-frontend
2023-07-19 19:55:16 +00:00
2023-11-12 10:20:24 +00:00
# Start the app
2023-11-12 09:42:46 +00:00
WORKDIR /opt/little-lines-frontend
RUN npm i
CMD npm run dev --host
2023-07-19 20:23:59 +00:00
2023-11-12 10:20:24 +00:00