Skip to content

Commit

Permalink
adjust locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Its4Nik committed Aug 24, 2024
1 parent a108421 commit 550228f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ COPY . /build
# Install dependencies and build the React app
RUN npm install --force && \
npm run build && \
npm install -g serve && \
chmod +x /build/entrypoint.sh

# Final stage
Expand All @@ -28,6 +27,8 @@ WORKDIR /app
COPY --from=build /build/build /app
COPY --from=build /build/entrypoint.sh /app

RUN npm install -g serve

EXPOSE 3000

# Run the entrypoint script
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ echo "
\"DEFAULT_THEME\": \"${DEFAULT_THEME}\",
\"SECRET\": \"${SECRET}\"
}
" > /build/public/config.json
" > /app/public/config.json

exec serve -s build

0 comments on commit 550228f

Please sign in to comment.