mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Update Dockerfile and remove useless dir
This commit is contained in:
@@ -14,10 +14,6 @@ WORKDIR /usr/src/athena/build
|
||||
|
||||
RUN yarn install --production
|
||||
|
||||
RUN mkdir .config
|
||||
|
||||
RUN cd /.config
|
||||
|
||||
RUN touch .spotify
|
||||
|
||||
EXPOSE 5555
|
||||
|
||||
@@ -39,7 +39,7 @@ export async function setupSpotify(code: string): Promise<void> {
|
||||
|
||||
if (authorization_tokens.status === 200) {
|
||||
writeFileSync(
|
||||
'.config/.spotify',
|
||||
'.spotify',
|
||||
JSON.stringify({
|
||||
access: authorization_tokens.data.access_token,
|
||||
refresh: authorization_tokens.data.refresh_token,
|
||||
@@ -67,7 +67,7 @@ export async function regenerateTokens(): Promise<void> {
|
||||
|
||||
if (authorization_tokens.status === 200) {
|
||||
writeFileSync(
|
||||
'.config/.spotify',
|
||||
'.spotify',
|
||||
JSON.stringify({
|
||||
access: authorization_tokens.data.access_token,
|
||||
refresh: authorization_tokens.data.refresh_token,
|
||||
|
||||
Reference in New Issue
Block a user