frontend/Dockerfile

16 lines
285 B
Text
Raw Permalink 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
2023-07-19 20:23:59 +00:00
RUN apk add yarn nodejs
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
2023-07-19 19:55:16 +00:00
RUN yarn
2023-11-12 09:50:41 +00:00
CMD yarn dev --host
2023-07-19 20:23:59 +00:00
2023-11-12 10:20:24 +00:00