Skip to content

Commit

Permalink
feat: changed project into astro
Browse files Browse the repository at this point in the history
  • Loading branch information
adhikara13 committed Dec 17, 2023
1 parent e2d495c commit be38da9
Show file tree
Hide file tree
Showing 12 changed files with 6,107 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
curl -sS 'https://vdnh.ru/local/templates/v3_new_header/js/places-s1.js' \
| sed -E 's/^var places = |;$//g' \
> backup.json
> src/api/backup.json
- uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist

node_modules

dist
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Use the official Apache image
FROM httpd:alpine

# Set the working directory inside the container
WORKDIR /usr/local/apache2/htdocs

# Copy the application files to the working directory
FROM node:lts AS build
WORKDIR /app
COPY . .
RUN npm i
RUN npm run build

# Expose the port the app runs on
EXPOSE 80
FROM httpd:2.4 AS runtime
COPY --from=build /app/dist /usr/local/apache2/htdocs/
EXPOSE 80
4 changes: 4 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({});
Loading

0 comments on commit be38da9

Please sign in to comment.