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
|
2024-03-27 17:45:09 +00:00
|
|
|
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
|
2024-03-27 17:45:09 +00:00
|
|
|
RUN npm i
|
|
|
|
CMD npm run dev --host
|
2023-07-19 20:23:59 +00:00
|
|
|
|
2023-11-12 10:20:24 +00:00
|
|
|
|