mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-03 05:17:49 +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 yarn install --production
|
||||||
|
|
||||||
RUN mkdir .config
|
|
||||||
|
|
||||||
RUN cd /.config
|
|
||||||
|
|
||||||
RUN touch .spotify
|
RUN touch .spotify
|
||||||
|
|
||||||
EXPOSE 5555
|
EXPOSE 5555
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export async function setupSpotify(code: string): Promise<void> {
|
|||||||
|
|
||||||
if (authorization_tokens.status === 200) {
|
if (authorization_tokens.status === 200) {
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
'.config/.spotify',
|
'.spotify',
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
access: authorization_tokens.data.access_token,
|
access: authorization_tokens.data.access_token,
|
||||||
refresh: authorization_tokens.data.refresh_token,
|
refresh: authorization_tokens.data.refresh_token,
|
||||||
@@ -67,7 +67,7 @@ export async function regenerateTokens(): Promise<void> {
|
|||||||
|
|
||||||
if (authorization_tokens.status === 200) {
|
if (authorization_tokens.status === 200) {
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
'.config/.spotify',
|
'.spotify',
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
access: authorization_tokens.data.access_token,
|
access: authorization_tokens.data.access_token,
|
||||||
refresh: authorization_tokens.data.refresh_token,
|
refresh: authorization_tokens.data.refresh_token,
|
||||||
|
|||||||
Reference in New Issue
Block a user