-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from compsoc-edinburgh/launch
- Loading branch information
Showing
49 changed files
with
10,456 additions
and
786 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ADMIN_LOGIN=admin | ||
COMPSOC_LEADERBOARD_JOIN_CODE=123123-123123123 | ||
CCSIG_LEADERBOARD_JOIN_CODE=123123-14242424 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
build | ||
.cache | ||
data | ||
.DS_Store | ||
.env.production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"typescript.tsdk": "node_modules\\typescript\\lib", | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
FROM trafex/php-nginx:3.6.0 | ||
FROM node:23 AS build | ||
WORKDIR /app | ||
|
||
COPY index.html /var/www/html/index.html | ||
COPY keep_me_updated.php /var/www/html/keep_me_updated.php | ||
COPY compiled.css /var/www/html/compiled.css | ||
COPY ./package.json /app/package.json | ||
COPY ./yarn.lock /app/yarn.lock | ||
|
||
# Remove the default files | ||
RUN rm /var/www/html/index.php | ||
RUN rm /var/www/html/test.html | ||
RUN yarn install | ||
|
||
# Temporarily become root since the trafek/php-nginx image sets the user to nobody | ||
# which can't create or chown files | ||
USER root | ||
COPY ./src /app/src | ||
COPY ./vite.config.ts /app/vite.config.ts | ||
COPY ./tailwind.config.ts /app/tailwind.config.ts | ||
COPY ./tsconfig.json /app/tsconfig.json | ||
COPY ./postcss.config.mjs /app/postcss.config.mjs | ||
RUN yarn build | ||
|
||
RUN mkdir -p /etc/adventure | ||
RUN touch /etc/adventure/emails.txt | ||
RUN chmod 0777 /etc/adventure/emails.txt | ||
|
||
USER nobody | ||
|
||
EXPOSE 8080 | ||
CMD ["yarn", "serve"] |
Oops, something went wrong.