20 lines
470 B
Docker
20 lines
470 B
Docker
FROM mcr.microsoft.com/devcontainers/typescript-node:20
|
|
MAINTAINER Imam Syahid Hudzaifa <me@imamsyahid.dev>
|
|
WORKDIR /app
|
|
COPY ./fe/package*.json ./
|
|
RUN npm install
|
|
|
|
COPY ./fe .
|
|
# Default app name is hcportal, but can be overridden at runtime
|
|
ENV APP_NAME=hcportal
|
|
EXPOSE 4200
|
|
|
|
# Copy the entrypoint script
|
|
COPY entrypoint-frontend.sh /entrypoint.sh
|
|
|
|
# Make the entrypoint script executable
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Set the entrypoint
|
|
ENTRYPOINT ["/entrypoint.sh"]
|